mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
Ensure we do reinit_after_fork().
Jeremy.
This commit is contained in:
parent
4cbb3b23a4
commit
1d151b3161
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user