1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

lwsws remove non libuv SIGINT handler

Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
Andy Green 2016-05-10 10:31:16 +08:00
parent 5afc56770d
commit f530de84ac

View file

@ -65,12 +65,6 @@ static struct lws_protocols protocols[] = {
{ }
};
void sighandler(int sig)
{
force_exit = 1;
lws_cancel_service(context);
}
static const struct lws_extension exts[] = {
{
"permessage-deflate",
@ -95,7 +89,6 @@ static struct option options[] = {
{ NULL, 0, 0, 0 }
};
#ifdef LWS_USE_LIBUV
void signal_cb(uv_signal_t *watcher, int signum)
{
lwsl_err("Signal %d caught, exiting...\n", watcher->signum);
@ -110,9 +103,6 @@ void signal_cb(uv_signal_t *watcher, int signum)
}
lws_libuv_stop(context);
}
#endif
int main(int argc, char **argv)
{
@ -171,8 +161,6 @@ int main(int argc, char **argv)
lwsl_notice("Daemonized\n");
#endif
signal(SIGINT, sighandler);
#ifndef _WIN32
/* we will only try to log things according to our debug_level */
setlogmask(LOG_UPTO (LOG_DEBUG));