diff options
author | Bo Yang <boyang@novell.com> | 2009-01-05 19:47:45 +0800 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-01-05 15:07:31 +0100 |
commit | 022e2f81991f12637ca0eeb3a030d4cec69d6fb9 (patch) | |
tree | 47f153de1292b5b75d602f0a21428eb75510cac5 /source3/smbd | |
parent | 73875cd344608b591fa884ab99b5f3a10550c149 (diff) | |
download | samba-022e2f81991f12637ca0eeb3a030d4cec69d6fb9.tar.gz samba-022e2f81991f12637ca0eeb3a030d4cec69d6fb9.tar.bz2 samba-022e2f81991f12637ca0eeb3a030d4cec69d6fb9.zip |
clean event context after child is forked.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/server.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 254180ae1c..a84b58a052 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -753,7 +753,9 @@ static bool open_sockets_smbd(bool is_daemon, bool interactive, const char *smb_ false); if (!reinit_after_fork( - smbd_messaging_context(), true)) { + smbd_messaging_context(), + smbd_event_context(), + true)) { DEBUG(0,("reinit_after_fork() failed\n")); smb_panic("reinit_after_fork() failed"); } @@ -1327,7 +1329,8 @@ extern void build_options(bool screen); if (is_daemon) pidfile_create("smbd"); - if (!reinit_after_fork(smbd_messaging_context(), false)) { + if (!reinit_after_fork(smbd_messaging_context(), + smbd_event_context(), false)) { DEBUG(0,("reinit_after_fork() failed\n")); exit(1); } |