From e0f45176eb4b00d15e70619dee856abe94518ace Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 23 Sep 2014 13:32:37 -0700 Subject: 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-1-test): Karolin Seeger Autobuild-Date(v4-1-test): Sun Oct 19 23:19:38 CEST 2014 on sn-devel-104 --- source3/nmbd/nmbd.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3') 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; -- cgit v1.2.3