summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-08-25 19:13:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:53 -0500
commit47e29ebe0975f63f972d137fca30fec843492f78 (patch)
tree1ea028f2af79d4c10db7bfbf303aa6290f4e66e0
parent9230c659f66df3da9fda5e7cae1717f19c9c08c7 (diff)
downloadsamba-47e29ebe0975f63f972d137fca30fec843492f78.tar.gz
samba-47e29ebe0975f63f972d137fca30fec843492f78.tar.bz2
samba-47e29ebe0975f63f972d137fca30fec843492f78.zip
r17836: Don't create zombies in the children, thanks to Jeremy!
Volker (This used to be commit c0767c08d01a429e1abf7205c14acec5e103ca91)
-rw-r--r--source3/smbd/server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 460e2cc44b..a7a84eced1 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -502,6 +502,10 @@ static BOOL open_sockets_smbd(BOOL is_daemon, BOOL interactive, const char *smb_
smbd_server_fd() != -1 &&
((child = sys_fork())==0)) {
/* Child code ... */
+
+ /* Stop zombies, the parent explicitly handles
+ * them, counting worker smbds. */
+ CatchChild();
/* close the listening socket(s) */
for(i = 0; i < num_sockets; i++)