lwsws remove non libuv SIGINT handler
Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
parent
5afc56770d
commit
f530de84ac
1 changed files with 0 additions and 12 deletions
12
lwsws/main.c
12
lwsws/main.c
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue