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-4.0.0alpha6~801^2~17551 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c50ef232152551ac79502caaf259cdfc3a32ca96;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. (This used to be commit 2501fe7c0436fc00f35271e2dce17fe541e97424) --- diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 65fa600be46..2b75197c380 100644 --- a/source3/smbd/process.c +++ b/source3/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