mirror of
https://github.com/samba-team/samba.git
synced 2025-06-02 13:06:57 +03:00
r17836: Don't create zombies in the children, thanks to Jeremy!
Volker (This used to be commit c0767c08d01a429e1abf7205c14acec5e103ca91)
This commit is contained in:
parent
9230c659f6
commit
47e29ebe09
@ -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++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user