summaryrefslogtreecommitdiff
path: root/source3/smbd/process.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-04-15 00:31:56 +0000
committerJeremy Allison <jra@samba.org>2000-04-15 00:31:56 +0000
commitce5e230952c18b2308d0e41fff39f0bfdf2cc32b (patch)
tree85cef5ef4a02825f4cd7c3b568775605d88fe32a /source3/smbd/process.c
parent067b341a01319577f59e4c742f7bf11b42381ecc (diff)
downloadsamba-ce5e230952c18b2308d0e41fff39f0bfdf2cc32b.tar.gz
samba-ce5e230952c18b2308d0e41fff39f0bfdf2cc32b.tar.bz2
samba-ce5e230952c18b2308d0e41fff39f0bfdf2cc32b.zip
Log file check patch from Mattias Gronlund <Mattias.Gronlund@sa.erisoft.se>.
Modified to do checks in timeout processing not in main loop. This (IMHO) is the correct place as (a) we are already root, and (b) it is guarenteed to be called every 200 smb requests. Jeremy. (This used to be commit c3794fd29fdc4e5a0dbd725cdc24fe210934caf2)
Diffstat (limited to 'source3/smbd/process.c')
-rw-r--r--source3/smbd/process.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 2383b7a3a5..f378550282 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -971,6 +971,12 @@ machine %s in domain %s.\n", global_myname, global_myworkgroup ));
process_pending_change_notify_queue(t);
/*
+ * Now we are root, check if the log files need pruning.
+ */
+ if(need_to_check_log_size())
+ check_log_size();
+
+ /*
* Modify the select timeout depending upon
* what we have remaining in our queues.
*/