From: Herb Lewis Date: Wed, 22 Aug 2001 04:58:00 +0000 (+0000) Subject: force checking of log size after 200 smbd in a row or after 30 sec with no X-Git-Tag: samba-2.2.5pre1~1555^2~105 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2501fe7c0436fc00f35271e2dce17fe541e97424;p=thirdparty%2Fsamba.git 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. --- diff --git a/source/smbd/process.c b/source/smbd/process.c index 65fa600be46..2b75197c380 100644 --- a/source/smbd/process.c +++ b/source/smbd/process.c @@ -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