From c50ef232152551ac79502caaf259cdfc3a32ca96 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Wed, 22 Aug 2001 04:58:00 +0000 Subject: 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) --- source3/smbd/process.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3') 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 -- cgit