From 1d151b3161b1bf82898baa9eb9dd1f212b79e2a1 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 10 Oct 2008 16:43:13 -0700 Subject: Ensure we do reinit_after_fork(). Jeremy. --- source3/printing/print_cups.c | 5 +++++ 1 file changed, 5 insertions(+) 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]); -- cgit