From: Adam Dickmeiss Date: Wed, 10 Dec 2014 14:54:35 +0000 (+0000) Subject: Fix daemon: parent process stops before child YAZ-806 X-Git-Tag: v5.7.2~4 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=f1335560fa908652518cec29aab02b4e95eb56e5;p=yaz-moved-to-github.git Fix daemon: parent process stops before child YAZ-806 Try to fix the situation where parent process stops before child has acknowledged it .. SIGUSR2 back! --- diff --git a/src/daemon.c b/src/daemon.c index 3a8bb42..3ece89c 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -69,13 +69,13 @@ static void normal_stop_handler(int num) if (child_pid) { /* relay signal to child */ - child_got_signal_from_us = 1; kill(child_pid, num); } } static void sigusr2_handler(int num) { + child_got_signal_from_us = 1; } static pid_t keepalive_pid = 0;