From: Jeremy Allison Date: Tue, 23 Sep 2014 20:32:37 +0000 (-0700) Subject: s3: nmbd: Ensure the main nmbd process doesn't create zombies. X-Git-Tag: samba-4.0.23~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b9d192548eeb1ab87d2490a2437b1f268b10538;p=thirdparty%2Fsamba.git 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 Reviewed-by: Martin Schwenke Autobuild-User(v4-0-test): Karolin Seeger Autobuild-Date(v4-0-test): Mon Oct 13 23:31:07 CEST 2014 on sn-devel-104 --- diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index 4d3e0396a5f..c924dd45ba2 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -876,6 +876,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;