summaryrefslogtreecommitdiffstats
path: root/source3/printing
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-01-05 13:47:34 -0800
committerJeremy Allison <jra@samba.org>2009-01-05 13:47:34 -0800
commit1f8b6238dd161d29ee92902ea006158e180fa87b (patch)
tree8829f27d4ef05c245d360aa01c892a2d73793a3b /source3/printing
parent65fb7f123baf060cae058670a7ecedc6d14e0fd9 (diff)
downloadsamba-1f8b6238dd161d29ee92902ea006158e180fa87b.tar.gz
samba-1f8b6238dd161d29ee92902ea006158e180fa87b.tar.xz
samba-1f8b6238dd161d29ee92902ea006158e180fa87b.zip
Attempt to fix crash seen with new CUPS async printcap loading code.
Jeremy.
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/print_cups.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c
index d75d635779d..ecdd0e4f383 100644
--- a/source3/printing/print_cups.c
+++ b/source3/printing/print_cups.c
@@ -425,6 +425,9 @@ static bool cups_pcap_load_async(int *pfd)
}
/* Child. */
+
+ close_all_print_db();
+
if (!reinit_after_fork(smbd_messaging_context(),
smbd_event_context(), true)) {
DEBUG(0,("cups_pcap_load_async: reinit_after_fork() failed\n"));