summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/server.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index a84b58a052..6241e96f77 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -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 */