lib/util: add double_fork() that avoids getting SIGCHLD and getting zombies
authorStefan Metzmacher <metze@samba.org>
Thu, 23 Sep 2010 16:10:02 +0000 (18:10 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Oct 2010 07:33:36 +0000 (09:33 +0200)
commitf2c57c948a4e002831cf8aba9850ae808b123256
tree575eb95911f74837130a88cedd582d8718e10b83
parent78676d70589b15af2ba4770f91b7beab85e33ee8
lib/util: add double_fork() that avoids getting SIGCHLD and getting zombies

This function is a workaround for the problem of using fork() in
library code. In that case the library should avoid to set a global
signal handler for SIGCHLD, because the application may wants to use its
own handler!

metze
lib/util/double_fork.c [new file with mode: 0644]
lib/util/double_fork.h [new file with mode: 0644]
lib/util/util.h
lib/util/wscript_build