From ad8bd2467c017965a21f12e6eb9118272a7f0293 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 26 Jul 2018 16:11:33 +0200 Subject: [PATCH] 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. --- src/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/signal.c b/src/signal.c index 4bee7d7..01b6121 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; } -- 1.7.10.4