|
|
@ -102,6 +102,7 @@ static int ipv6first = 0; |
|
|
|
static int fast_open = 0; |
|
|
|
static int no_delay = 0; |
|
|
|
static int udp_fd = 0; |
|
|
|
static int ret_val = 0; |
|
|
|
|
|
|
|
static struct ev_signal sigint_watcher; |
|
|
|
static struct ev_signal sigterm_watcher; |
|
|
@ -1296,8 +1297,10 @@ signal_cb(EV_P_ ev_signal *w, int revents) |
|
|
|
switch (w->signum) { |
|
|
|
#ifndef __MINGW32__ |
|
|
|
case SIGCHLD: |
|
|
|
if (!is_plugin_running()) |
|
|
|
if (!is_plugin_running()) { |
|
|
|
LOGE("plugin service exit unexpectedly"); |
|
|
|
ret_val = -1; |
|
|
|
} |
|
|
|
else |
|
|
|
return; |
|
|
|
case SIGUSR1: |
|
|
@ -1820,7 +1823,7 @@ main(int argc, char **argv) |
|
|
|
winsock_cleanup(); |
|
|
|
#endif |
|
|
|
|
|
|
|
return 0; |
|
|
|
return ret_val; |
|
|
|
} |
|
|
|
|
|
|
|
#else |
|
|
@ -1969,7 +1972,7 @@ _start_ss_local_server(profile_t profile, ss_local_callback callback, void *udat |
|
|
|
winsock_cleanup(); |
|
|
|
#endif |
|
|
|
|
|
|
|
return 0; |
|
|
|
return ret_val; |
|
|
|
} |
|
|
|
|
|
|
|
int |
|
|
|