summaryrefslogtreecommitdiff
path: root/source3/nmbd
diff options
context:
space:
mode:
authorBo Yang <boyang@novell.com>2009-01-05 19:47:45 +0800
committerStefan Metzmacher <metze@samba.org>2009-01-05 15:07:31 +0100
commit022e2f81991f12637ca0eeb3a030d4cec69d6fb9 (patch)
tree47f153de1292b5b75d602f0a21428eb75510cac5 /source3/nmbd
parent73875cd344608b591fa884ab99b5f3a10550c149 (diff)
downloadsamba-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/nmbd')
-rw-r--r--source3/nmbd/asyncdns.c3
-rw-r--r--source3/nmbd/nmbd.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/source3/nmbd/asyncdns.c b/source3/nmbd/asyncdns.c
index ab9b1ed740..baa88bc44b 100644
--- a/source3/nmbd/asyncdns.c
+++ b/source3/nmbd/asyncdns.c
@@ -164,7 +164,8 @@ void start_async_dns(void)
CatchSignal(SIGHUP, SIG_IGN);
CatchSignal(SIGTERM, SIGNAL_CAST sig_term );
- if (!reinit_after_fork(nmbd_messaging_context(), true)) {
+ if (!reinit_after_fork(nmbd_messaging_context(),
+ nmbd_event_context(), true)) {
DEBUG(0,("reinit_after_fork() failed\n"));
smb_panic("reinit_after_fork() failed");
}
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c
index d1ab3aaacb..659db85e69 100644
--- a/source3/nmbd/nmbd.c
+++ b/source3/nmbd/nmbd.c
@@ -911,7 +911,8 @@ static bool open_sockets(bool isdaemon, int port)
pidfile_create("nmbd");
- if (!reinit_after_fork(nmbd_messaging_context(), false)) {
+ if (!reinit_after_fork(nmbd_messaging_context(),
+ nmbd_event_context(), false)) {
DEBUG(0,("reinit_after_fork() failed\n"));
exit(1);
}