From: Stefan Metzmacher Date: Thu, 8 Jan 2009 10:52:52 +0000 (+0100) Subject: s3:smbd: open_sockets_smbd() don't need a static variable arrount atexit() X-Git-Tag: samba-4.0.0alpha6~221^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a5d07a1c1da70ddfc57d457d0efdd09559349d6;p=thirdparty%2Fsamba.git s3:smbd: open_sockets_smbd() don't need a static variable arrount atexit() open_sockets_smbd() is only called once. metze --- diff --git a/source3/smbd/server.c b/source3/smbd/server.c index a84b58a0528..6241e96f775 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 */