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.
This commit is contained in:
Willy Tarreau 2018-07-26 16:11:33 +02:00
parent c4aac9effe
commit ad8bd2467c

View 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;
}