From f1335560fa908652518cec29aab02b4e95eb56e5 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 10 Dec 2014 14:54:35 +0000 Subject: [PATCH] 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! --- src/daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.7.10.4