s3-prefork: Set up a SIGCHLD handler by default
authorSimo Sorce <idra@samba.org>
Fri, 20 May 2011 03:56:02 +0000 (23:56 -0400)
committerAndreas Schneider <asn@samba.org>
Wed, 10 Aug 2011 16:14:04 +0000 (18:14 +0200)
commit1155280a483e2a84e8baa27556c6ea066dbe6c8a
tree39c58cbdcb491651b4129233010154fe6e11842a
parentd36a8dc896d2a814dd18f127593a8382e4004213
s3-prefork: Set up a SIGCHLD handler by default

We need to properly handle preforked children so it is better to just do that
automatically.

If the parent needs/wants to intercept SIGCHLD events it can set a callback
that will be called by the prefork code once the internal cleanup function that
checks all prefork children has been executed.

Signed-off-by: Andreas Schneider <asn@samba.org>
source3/lib/server_prefork.c
source3/lib/server_prefork.h
source3/printing/spoolssd.c