projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
daemon: exit monitor process for SIG{HUP,TERM,USR1}
[yaz-moved-to-github.git]
/
src
/
daemon.c
diff --git
a/src/daemon.c
b/src/daemon.c
index
82d1c9e
..
5d7979d
100644
(file)
--- a/
src/daemon.c
+++ b/
src/daemon.c
@@
-66,7
+66,10
@@
pid_t child_pid = 0;
static void kill_child_handler(int num)
{
if (child_pid)
+ {
kill(child_pid, num);
+ _exit(0);
+ }
}
static void keepalive(void (*work)(void *data), void *data)