Author: vlendec
Date: 2006-08-25 19:13:37 +0000 (Fri, 25 Aug 2006)
New Revision: 17836

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17836

Log:
Don't create zombies in the children, thanks to Jeremy!

Volker
Modified:
   branches/SAMBA_3_0/source/smbd/server.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/server.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/server.c     2006-08-25 18:24:43 UTC (rev 
17835)
+++ branches/SAMBA_3_0/source/smbd/server.c     2006-08-25 19:13:37 UTC (rev 
17836)
@@ -502,6 +502,10 @@
                            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++)

Reply via email to