|
|
|
|
@ -249,9 +249,12 @@ struct UASYNC* main_ua = NULL;
|
|
|
|
|
static void signal_handler(int sig) { |
|
|
|
|
if (sig == SIGINT || sig == SIGTERM) { |
|
|
|
|
g_shutdown = 1; |
|
|
|
|
} else if (sig == SIGHUP) { |
|
|
|
|
}
|
|
|
|
|
#ifndef _WIN32 |
|
|
|
|
else if (sig == SIGHUP) { |
|
|
|
|
g_reload = 1; |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
if (main_ua) { |
|
|
|
|
uasync_wakeup(main_ua); |
|
|
|
|
} |
|
|
|
|
|