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/printing | |
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/printing')
-rw-r--r-- | source3/printing/print_cups.c | 3 | ||||
-rw-r--r-- | source3/printing/printing.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c index 5fb1d379a6..d75d635779 100644 --- a/source3/printing/print_cups.c +++ b/source3/printing/print_cups.c @@ -425,7 +425,8 @@ static bool cups_pcap_load_async(int *pfd) } /* Child. */ - if (!reinit_after_fork(smbd_messaging_context(), true)) { + if (!reinit_after_fork(smbd_messaging_context(), + smbd_event_context(), true)) { DEBUG(0,("cups_pcap_load_async: reinit_after_fork() failed\n")); smb_panic("cups_pcap_load_async: reinit_after_fork() failed"); } diff --git a/source3/printing/printing.c b/source3/printing/printing.c index ba88f8ee56..0f38aeab80 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -1421,7 +1421,8 @@ void start_background_queue(void) close(pause_pipe[0]); pause_pipe[0] = -1; - if (!reinit_after_fork(smbd_messaging_context(), true)) { + if (!reinit_after_fork(smbd_messaging_context(), + smbd_event_context(), true)) { DEBUG(0,("reinit_after_fork() failed\n")); smb_panic("reinit_after_fork() failed"); } |