[dovecot-cvs] dovecot/src/master main.c,1.56,1.57
cras at dovecot.org
cras at dovecot.org
Fri Nov 12 16:35:52 EET 2004
Update of /var/lib/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv15882/master
Modified Files:
main.c
Log Message:
Make SIGUSR1 reopen log files.
Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/main.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- main.c 6 Nov 2004 20:23:01 -0000 1.56
+++ main.c 12 Nov 2004 14:35:49 -0000 1.57
@@ -34,6 +34,7 @@
static const char *configfile = SYSCONFDIR "/" PACKAGE ".conf";
static struct timeout *to;
static unsigned int settings_reload_hup_count = 0;
+static unsigned int log_reopen_usr1_count = 0;
struct ioloop *ioloop;
struct hash_table *pids;
@@ -141,6 +142,10 @@
settings_reload_hup_count = lib_signal_hup_count;
settings_reload();
}
+ if (lib_signal_usr1_count != log_reopen_usr1_count) {
+ log_reopen_usr1_count = lib_signal_usr1_count;
+ set_logfile(settings_root->defaults);
+ }
while ((pid = waitpid(-1, &status, WNOHANG)) > 0) {
/* get the type and remove from hash */
More information about the dovecot-cvs
mailing list