summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-04-15 01:48:44 +0200
committerStefan Metzmacher <metze@samba.org>2008-04-18 15:00:19 +0200
commitc5615c6113a72b2665efab1c1fcf50f0a85dfc8f (patch)
tree89250691d141bbba8f2176edcf13e7dfabe11f6f
parent2df0ade13afc1690c2e6d80e087aa281c815e678 (diff)
downloadsamba-c5615c6113a72b2665efab1c1fcf50f0a85dfc8f.tar.gz
samba-c5615c6113a72b2665efab1c1fcf50f0a85dfc8f.tar.bz2
samba-c5615c6113a72b2665efab1c1fcf50f0a85dfc8f.zip
printing: call reinit_after_fork() in the backgroundqueue process
metze (This used to be commit 9adb675a86e81c90e2bddfe984b5ac8f201fec75)
-rw-r--r--source3/printing/printing.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index eb304e7641..fdf5e6cc22 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -1406,6 +1406,11 @@ void start_background_queue(void)
/* Child. */
DEBUG(5,("start_background_queue: background LPQ thread started\n"));
+ if (!reinit_after_fork(smbd_messaging_context())) {
+ DEBUG(0,("reinit_after_fork() failed\n"));
+ smb_panic("reinit_after_fork() failed");
+ }
+
claim_connection( NULL, "smbd lpq backend",
FLAG_MSG_GENERAL|FLAG_MSG_SMBD|FLAG_MSG_PRINT_GENERAL);