From: Willy Tarreau Date: Sun, 10 May 2009 07:01:21 +0000 (+0200) Subject: [MEDIUM] call signal_process_queue from run_poll_loop X-Git-Tag: v1.3.18~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2985794ca9a7f924ea886e046d949c92261e7b4b;p=thirdparty%2Fhaproxy.git [MEDIUM] call signal_process_queue from run_poll_loop Now we check for asynchronous pending signals. There's no user yet so this cannot cause any trouble. --- diff --git a/src/haproxy.c b/src/haproxy.c index 6968079f25..608dcc5783 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -89,6 +89,7 @@ #include #include #include +#include #include #include @@ -405,6 +406,7 @@ void init(int argc, char **argv) tv_update_date(-1,-1); start_date = now; + signal_init(); init_task(); init_session(); init_buffer(); @@ -876,6 +878,9 @@ void run_poll_loop() tv_update_date(0,1); while (1) { + /* check if we caught some signals and process them */ + signal_process_queue(); + /* Check if we can expire some tasks */ wake_expired_tasks(&next);