summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2001-08-22 04:53:03 +0000
committerHerb Lewis <herb@samba.org>2001-08-22 04:53:03 +0000
commit23a2ffc40e588e881f38176c19cb97154f9ed9d1 (patch)
tree358febdb3290b863989ef991b02c106c06d91b53
parent2acb1c7fada6bb2cdc603f64aa1c0821f52d5cfd (diff)
downloadsamba-23a2ffc40e588e881f38176c19cb97154f9ed9d1.tar.gz
samba-23a2ffc40e588e881f38176c19cb97154f9ed9d1.tar.xz
samba-23a2ffc40e588e881f38176c19cb97154f9ed9d1.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.
-rw-r--r--source/smbd/process.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/smbd/process.c b/source/smbd/process.c
index 9b7435f989c..f804d185b6d 100644
--- a/source/smbd/process.c
+++ b/source/smbd/process.c
@@ -1169,9 +1169,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