diff options
author | Jeremy Allison <jra@samba.org> | 2009-01-05 13:47:34 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-01-05 13:47:34 -0800 |
commit | 1f8b6238dd161d29ee92902ea006158e180fa87b (patch) | |
tree | 8829f27d4ef05c245d360aa01c892a2d73793a3b /source3/printing | |
parent | 65fb7f123baf060cae058670a7ecedc6d14e0fd9 (diff) | |
download | samba-1f8b6238dd161d29ee92902ea006158e180fa87b.tar.gz samba-1f8b6238dd161d29ee92902ea006158e180fa87b.tar.bz2 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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c index d75d635779..ecdd0e4f38 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")); |