uloop: Remove uloop_cancelled variable, it is not used anywhere
authorMichel Stam <m.stam@fugro.nl>
Mon, 13 Oct 2014 14:14:27 +0000 (16:14 +0200)
committerJohn Crispin <blogic@openwrt.org>
Sun, 12 Oct 2014 11:21:17 +0000 (13:21 +0200)
Signed-off-by: Michel Stam <m.stam@fugro.nl>
uloop.c

diff --git a/uloop.c b/uloop.c
index c3d206a0ed146a5d12173543d9af37acb166811e..9fedcce078e836ebb46c8997838aac7c8f7336c4 100644 (file)
--- a/uloop.c
+++ b/uloop.c
@@ -58,7 +58,6 @@ static struct list_head processes = LIST_HEAD_INIT(processes);
 
 static int poll_fd = -1;
 bool uloop_cancelled = false;
-bool uloop_handle_sigchld = true;
 static bool do_sigchld = false;
 
 static struct uloop_fd_event cur_fds[ULOOP_MAX_EVENTS];
@@ -575,9 +574,6 @@ static void uloop_setup_signals(bool add)
 
        sigaction(SIGINT, &s, &old_sigint);
 
-       if (!uloop_handle_sigchld)
-               return;
-
        if (add)
                s.sa_handler = uloop_sigchld;
        else