summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2014-09-23 13:32:37 -0700
committerJeremy Allison <jra@samba.org>2014-09-30 20:40:16 +0200
commit16e460e180cf8d6708b27137742fbce80e29b823 (patch)
tree87d34398b4a4769edf311d29bddbb1147d38a4d9
parentba3342616c54fe9e7f67e46f84d3decd9fa898dd (diff)
downloadsamba-16e460e180cf8d6708b27137742fbce80e29b823.tar.gz
s3: nmbd: Ensure the main nmbd process doesn't create zombies.
Use the same mechanism as setup for smbd and winbindd. Fixes bug #10830 - nmbd can leave unreaped zombies. https://bugzilla.samba.org/show_bug.cgi?id=10830 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
-rw-r--r--source3/nmbd/nmbd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c
index 50b18e5ea44..d883c0a5568 100644
--- a/source3/nmbd/nmbd.c
+++ b/source3/nmbd/nmbd.c
@@ -884,6 +884,9 @@ static bool open_sockets(bool isdaemon, int port)
BlockSignals(True, SIGUSR2);
#endif
+ /* Ignore children - no zombies. */
+ CatchChild();
+
if ( opt_interactive ) {
Fork = False;
log_stdout = True;