From 7f0e6df88345c1154f19fd263966ad20c73f5d52 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 4 Jul 2010 16:28:13 +0200 Subject: s3: Pass the new server_id through reinit_after_fork --- source3/printing/print_cups.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source3/printing/print_cups.c') diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c index 043cc96930..cbefa07a33 100644 --- a/source3/printing/print_cups.c +++ b/source3/printing/print_cups.c @@ -397,6 +397,7 @@ static bool cups_pcap_load_async(int *pfd) { int fds[2]; pid_t pid; + NTSTATUS status; *pfd = -1; @@ -434,8 +435,10 @@ static bool cups_pcap_load_async(int *pfd) close_all_print_db(); - if (!NT_STATUS_IS_OK(reinit_after_fork(server_messaging_context(), - server_event_context(), true))) { + status = reinit_after_fork(server_messaging_context(), + server_event_context(), procid_self(), + true); + if (!NT_STATUS_IS_OK(status)) { DEBUG(0,("cups_pcap_load_async: reinit_after_fork() failed\n")); smb_panic("cups_pcap_load_async: reinit_after_fork() failed"); } -- cgit