summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-10-10 16:43:13 -0700
committerJeremy Allison <jra@samba.org>2008-10-10 16:43:13 -0700
commit1d151b3161b1bf82898baa9eb9dd1f212b79e2a1 (patch)
tree04298f721207edc539ceb9cf2d45e864d8cb9f10 /source3
parent4cbb3b23a4e1d5e800b900fe91860eb0a9add12e (diff)
downloadsamba-1d151b3161b1bf82898baa9eb9dd1f212b79e2a1.tar.gz
samba-1d151b3161b1bf82898baa9eb9dd1f212b79e2a1.tar.bz2
samba-1d151b3161b1bf82898baa9eb9dd1f212b79e2a1.zip
Ensure we do reinit_after_fork().
Jeremy.
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/print_cups.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c
index 6086bb858b..9326ac74a4 100644
--- a/source3/printing/print_cups.c
+++ b/source3/printing/print_cups.c
@@ -425,6 +425,11 @@ static bool cups_pcap_load_async(int *pfd)
}
/* Child. */
+ if (!reinit_after_fork(smbd_messaging_context(), true)) {
+ DEBUG(0,("cups_pcap_load_async: reinit_after_fork() failed\n"));
+ smb_panic("cups_pcap_load_async: reinit_after_fork() failed");
+ }
+
close(fds[0]);
cups_cache_reload_async(fds[1]);
close(fds[1]);