mirror of
https://github.com/samba-team/samba.git
synced 2025-01-29 21:47:30 +03:00
check for sighup on each packet - otherwise it can take a _long_ time
to reload services
This commit is contained in:
parent
f1f92bf4da
commit
0fb4ba4e03
@ -1012,6 +1012,18 @@ void smbd_process(void)
|
||||
/* free up temporary memory */
|
||||
lp_talloc_free();
|
||||
|
||||
/*
|
||||
* If reload_after_sighup == True then we got a SIGHUP
|
||||
* and are being asked to reload. Fix from <branko.cibej@hermes.si>
|
||||
*/
|
||||
if (reload_after_sighup) {
|
||||
/* become root */
|
||||
unbecome_user();
|
||||
DEBUG(1,("Reloading services after SIGHUP\n"));
|
||||
reload_services(False);
|
||||
reload_after_sighup = False;
|
||||
}
|
||||
|
||||
while(!receive_message_or_smb(InBuffer,BUFFER_SIZE,select_timeout,&got_smb))
|
||||
{
|
||||
if(!timeout_processing( deadtime, &select_timeout, &last_timeout_processing_time))
|
||||
|
Loading…
x
Reference in New Issue
Block a user