]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] signals: support redistribution of signal zero when stopping
authorWilly Tarreau <w@1wt.eu>
Fri, 27 Aug 2010 16:26:11 +0000 (18:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 27 Aug 2010 16:26:11 +0000 (18:26 +0200)
commitd0807c3c603f661ef74b9cbb580aeffdbbd7d712
treebab83549a3b6185103b041f9fb3e25a06c30517b
parent24f4efa670c527aba819f1188b02af3d51091858
[MEDIUM] signals: support redistribution of signal zero when stopping

Signal zero is never delivered by the system. However having a signal to
which functions and tasks can subscribe to be notified of a stopping event
is useful. So this patch does two things :
  1) allow signal zero to be delivered from any function of signal handler
  2) make soft_stop() deliver this signal so that tasks can be notified of
     a stopping condition.
include/proto/signal.h
src/haproxy.c
src/proxy.c
src/signal.c