From 8b23f015090f2ea3e78563443e5c1da831f71312 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Wed, 25 Dec 2019 20:13:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/tests/server.c | 4 ++-- api/tests/websocket.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/tests/server.c b/api/tests/server.c index f29ac98b..16373389 100644 --- a/api/tests/server.c +++ b/api/tests/server.c @@ -392,7 +392,7 @@ void API_CALL on_mk_flow_report(const mk_media_info url_info, } static int flag = 1; -static void on_exit(int sig){ +static void s_on_exit(int sig){ flag = 0; } int main(int argc, char *argv[]) { @@ -425,7 +425,7 @@ int main(int argc, char *argv[]) { mk_events_listen(&events); - signal(SIGINT, on_exit );// 设置退出信号 + signal(SIGINT, s_on_exit );// 设置退出信号 while (flag) { #ifdef _WIN32 Sleep(1000); diff --git a/api/tests/websocket.c b/api/tests/websocket.c index 27ab33e5..7a39ee03 100644 --- a/api/tests/websocket.c +++ b/api/tests/websocket.c @@ -96,7 +96,7 @@ void API_CALL on_mk_websocket_session_err(mk_tcp_session session,int code,const } static int flag = 1; -static void on_exit(int sig){ +static void s_on_exit(int sig){ flag = 0; } int main(int argc, char *argv[]) { @@ -116,7 +116,7 @@ int main(int argc, char *argv[]) { mk_websocket_events_listen(&events); mk_websocket_server_start(80,0); - signal(SIGINT, on_exit );// 设置退出信号 + signal(SIGINT, s_on_exit );// 设置退出信号 while (flag) { #ifdef _WIN32 Sleep(1000);