summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-01-08 11:52:52 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-08 12:22:21 +0100
commit7a5d07a1c1da70ddfc57d457d0efdd09559349d6 (patch)
tree167093e328f468980d8e317e93b1ab61edade956
parent1bd317d3e34953bb89e50d2b870d2b9bbc8a90bc (diff)
downloadsamba-7a5d07a1c1da70ddfc57d457d0efdd09559349d6.tar.gz
samba-7a5d07a1c1da70ddfc57d457d0efdd09559349d6.tar.xz
samba-7a5d07a1c1da70ddfc57d457d0efdd09559349d6.zip
s3:smbd: open_sockets_smbd() don't need a static variable arrount atexit()
open_sockets_smbd() is only called once. metze
-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 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 */