From: Willy Tarreau Date: Thu, 26 Jul 2018 14:11:33 +0000 (+0200) Subject: MINOR: signal: don't pass the signal number anymore as the wakeup reason X-Git-Tag: v1.9-dev1~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ad8bd2467c017965a21f12e6eb9118272a7f0293;p=thirdparty%2Fhaproxy.git MINOR: signal: don't pass the signal number anymore as the wakeup reason 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. --- diff --git a/src/signal.c b/src/signal.c index 4bee7d70e3..01b6121799 100644 --- a/src/signal.c +++ b/src/signal.c @@ -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; }