From 659fefe330fb0f0bd15cfe308810b47925dcce66 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 22 Apr 2016 21:58:38 +0800 Subject: [PATCH] cruft remove sigusr2 handling Signed-off-by: Andy Green --- lib/lws-plat-unix.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/lib/lws-plat-unix.c b/lib/lws-plat-unix.c index 2e51513d..f792d0d2 100644 --- a/lib/lws-plat-unix.c +++ b/lib/lws-plat-unix.c @@ -50,15 +50,6 @@ lws_poll_listen_fd(struct lws_pollfd *fd) return poll(fd, 1, 0); } -/* - * This is just used to interrupt poll waiting - * we don't have to do anything with it. - */ -static void -lws_sigusr2(int sig) -{ -} - /** * lws_cancel_service_pt() - Cancel servicing of pending socket activity * on one thread @@ -301,14 +292,6 @@ sigpipe_handler(int x) LWS_VISIBLE int lws_plat_context_early_init(void) { - sigset_t mask; - - signal(SIGUSR2, lws_sigusr2); - sigemptyset(&mask); - sigaddset(&mask, SIGUSR2); - - sigprocmask(SIG_BLOCK, &mask, NULL); - signal(SIGPIPE, sigpipe_handler); return 0;