From 16e460e180cf8d6708b27137742fbce80e29b823 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 23 Sep 2014 13:32:37 -0700 Subject: [PATCH] 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 --- source3/nmbd/nmbd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index 50b18e5..d883c0a 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; -- 2.1.0.rc2.206.gedb03e5