summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2001-08-22 04:58:00 +0000
committerHerb Lewis <herb@samba.org>2001-08-22 04:58:00 +0000
commitc50ef232152551ac79502caaf259cdfc3a32ca96 (patch)
treeb8312b196175cd9ddce57e81813eeaa7fe6f3d9d /source3/smbd
parent9520d3d5fe21d8c75bc652cdaf9bcf9d8bde34ee (diff)
downloadsamba-c50ef232152551ac79502caaf259cdfc3a32ca96.tar.gz
samba-c50ef232152551ac79502caaf259cdfc3a32ca96.tar.bz2
samba-c50ef232152551ac79502caaf259cdfc3a32ca96.zip
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)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/process.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 65fa600be4..2b75197c38 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