summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2014-09-23 13:32:37 -0700
committerKarolin Seeger <kseeger@samba.org>2014-10-19 23:19:37 +0200
commite0f45176eb4b00d15e70619dee856abe94518ace (patch)
treebb636fd33c4addba3f40fde2793b268d16a78329 /source3
parent26a70367b8f4d71f3c2132a9f31ef94daf0dfebe (diff)
downloadsamba-e0f45176eb4b00d15e70619dee856abe94518ace.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> Autobuild-User(v4-1-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-1-test): Sun Oct 19 23:19:38 CEST 2014 on sn-devel-104
Diffstat (limited to 'source3')
-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 36d908221f..9ea662c50f 100644
--- a/source3/nmbd/nmbd.c
+++ b/source3/nmbd/nmbd.c
@@ -883,6 +883,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;