]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: signal: don't pass the signal number anymore as the wakeup reason
authorWilly Tarreau <w@1wt.eu>
Thu, 26 Jul 2018 14:11:33 +0000 (16:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 26 Jul 2018 14:12:48 +0000 (16:12 +0200)
This is never used and would even be wrong since the reasons are ORed
so two signals would be turned into a third value, just like if any
other reason was used at the same time.

src/signal.c

index 4bee7d70e3bfbbcf850ed870672ebf12c773b741..01b6121799b86507f126df26ac2135ec50420c81 100644 (file)
@@ -89,7 +89,7 @@ void __signal_process_queue()
                                if ((sh->flags & SIG_F_TYPE_FCT) && sh->handler)
                                        ((void (*)(struct sig_handler *))sh->handler)(sh);
                                else if ((sh->flags & SIG_F_TYPE_TASK) && sh->handler)
-                                       task_wakeup(sh->handler, sh->arg | TASK_WOKEN_SIGNAL);
+                                       task_wakeup(sh->handler, TASK_WOKEN_SIGNAL);
                        }
                        desc->count = 0;
                }