s3:smbd: let smbd/nmbd/winbindd child processes terminate if the parent process died.
commitc80f70390c3763d5d7248979db9542cd05b7cb44
authorMichael Adam <obnox@samba.org>
Thu, 15 Mar 2012 15:29:27 +0000 (15 16:29 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 15 Mar 2012 17:41:37 +0000 (15 18:41 +0100)
treea0f96da41205705839cec1dead1fc1762051a2e5
parente5ebe67e3837cf4da0ae2c3d00c72a244b8f202f
s3:smbd: let smbd/nmbd/winbindd child processes terminate if the parent process died.

This applies to all child processes making use of reinit_after_fork().
It is implemented by establishing a pipe between parent and child.
The child watches for EOF on the read end of the pipe, indidcating
an exited parent.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
source3/include/proto.h
source3/lib/util.c
source3/nmbd/nmbd.c
source3/smbd/server.c
source3/winbindd/winbindd.c