mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
修复编译失败问题
This commit is contained in:
parent
d59a706cc1
commit
8b23f01509
@ -392,7 +392,7 @@ void API_CALL on_mk_flow_report(const mk_media_info url_info,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int flag = 1;
|
static int flag = 1;
|
||||||
static void on_exit(int sig){
|
static void s_on_exit(int sig){
|
||||||
flag = 0;
|
flag = 0;
|
||||||
}
|
}
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
@ -425,7 +425,7 @@ int main(int argc, char *argv[]) {
|
|||||||
mk_events_listen(&events);
|
mk_events_listen(&events);
|
||||||
|
|
||||||
|
|
||||||
signal(SIGINT, on_exit );// 设置退出信号
|
signal(SIGINT, s_on_exit );// 设置退出信号
|
||||||
while (flag) {
|
while (flag) {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
Sleep(1000);
|
Sleep(1000);
|
||||||
|
@ -96,7 +96,7 @@ void API_CALL on_mk_websocket_session_err(mk_tcp_session session,int code,const
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int flag = 1;
|
static int flag = 1;
|
||||||
static void on_exit(int sig){
|
static void s_on_exit(int sig){
|
||||||
flag = 0;
|
flag = 0;
|
||||||
}
|
}
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
@ -116,7 +116,7 @@ int main(int argc, char *argv[]) {
|
|||||||
mk_websocket_events_listen(&events);
|
mk_websocket_events_listen(&events);
|
||||||
mk_websocket_server_start(80,0);
|
mk_websocket_server_start(80,0);
|
||||||
|
|
||||||
signal(SIGINT, on_exit );// 设置退出信号
|
signal(SIGINT, s_on_exit );// 设置退出信号
|
||||||
while (flag) {
|
while (flag) {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
Sleep(1000);
|
Sleep(1000);
|
||||||
|
Loading…
Reference in New Issue
Block a user