dovecot-2.1: dsync: Ignore SIGHUP

dovecot at dovecot.org dovecot at dovecot.org
Fri Sep 16 16:59:32 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/41dd8f4d44d5
changeset: 13484:41dd8f4d44d5
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Sep 13 02:08:15 2011 +0300
description:
dsync: Ignore SIGHUP

diffstat:

 src/dsync/dsync.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r df8bd044a47d -r 41dd8f4d44d5 src/dsync/dsync.c
--- a/src/dsync/dsync.c	Tue Sep 13 02:07:30 2011 +0300
+++ b/src/dsync/dsync.c	Tue Sep 13 02:08:15 2011 +0300
@@ -1,6 +1,7 @@
 /* Copyright (c) 2009-2011 Dovecot authors, see the included COPYING file */
 
 #include "lib.h"
+#include "lib-signals.h"
 #include "array.h"
 #include "execv-const.h"
 #include "settings-parser.h"
@@ -230,6 +231,7 @@
 		usage();
 	}
 	master_service_init_finish(master_service);
+	lib_signals_ignore(SIGHUP, TRUE);
 
 	if (!dsync_debug) {
 		/* disable debugging unless -D is given */


More information about the dovecot-cvs mailing list