1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

force checking of log size after 200 smbd in a row or after 30 sec with no

smbds. This should fix one case of logs not getting rotated properly.

We may need to test this to make sure there is no big performance hit from
the extra stat call.
This commit is contained in:
Herb Lewis -
parent ef5c09eebe
commit 2501fe7c04

View File

@ -1170,9 +1170,10 @@ machine %s in domain %s.\n", global_myname, global_myworkgroup ));
/*
* Now we are root, check if the log files need pruning.
* Force a log file check.
*/
if(need_to_check_log_size())
check_log_size();
force_check_log_size();
check_log_size();
/*
* Modify the select timeout depending upon