]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
force checking of log size after 200 smbd in a row or after 30 sec with no
authorHerb Lewis <herb@samba.org>
Wed, 22 Aug 2001 04:58:00 +0000 (04:58 +0000)
committerHerb Lewis <herb@samba.org>
Wed, 22 Aug 2001 04:58:00 +0000 (04:58 +0000)
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.

source/smbd/process.c

index 65fa600be466a859d3cb8e74df31f1d13567dd8a..2b75197c380bab9edb57a185de7d208b757b9867 100644 (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