mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
s3:smbd: open_sockets_smbd() don't need a static variable arrount atexit()
open_sockets_smbd() is only called once. metze
This commit is contained in:
parent
1bd317d3e3
commit
7a5d07a1c1
@ -360,13 +360,7 @@ static bool open_sockets_smbd(bool is_daemon, bool interactive, const char *smb_
|
||||
}
|
||||
|
||||
#ifdef HAVE_ATEXIT
|
||||
{
|
||||
static int atexit_set;
|
||||
if(atexit_set == 0) {
|
||||
atexit_set=1;
|
||||
atexit(killkids);
|
||||
}
|
||||
}
|
||||
atexit(killkids);
|
||||
#endif
|
||||
|
||||
/* Stop zombies */
|
||||
|
Loading…
Reference in New Issue
Block a user