From 6011b94a5c6f0b787ce883b5646684828a54a994 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Tue, 15 Sep 2015 05:14:06 +0200 Subject: Don't catch SIGHUP as it only work during IDLE. Sending any signal while some mails are being copied interrupts the syscall (eg, write) and attempting to resume crashes interimap. --- Changelog | 1 - interimap | 1 - interimap.1 | 5 ----- 3 files changed, 7 deletions(-) diff --git a/Changelog b/Changelog index 978f8e5..9d864f8 100644 --- a/Changelog +++ b/Changelog @@ -11,7 +11,6 @@ interimap (0.2) upstream; Can be disabled by adding 'use-binary=NO' to the default section in the configuration file. * Exit with return value 0 when receiving a SIGTERM. - * Print IMAP traffic stats when receiving a SIGHUP. * Add SSL options SINGLE_ECDH_USE, SINGLE_DH_USE, NO_SSLv2, NO_SSLv3 and NO_COMPRESSION to the compiled-in CTX options. * Use SSL_MODE_AUTO_RETRY to avoid SSL_read failures during a diff --git a/interimap b/interimap index e7cd6d5..b3a7342 100755 --- a/interimap +++ b/interimap @@ -120,7 +120,6 @@ sub cleanup() { } $SIG{INT} = sub { msg(undef, $!); cleanup(); exit 1; }; $SIG{TERM} = sub { cleanup(); exit 0; }; -$SIG{HUP} = sub { $_->stats() foreach grep defined, ($lIMAP, $rIMAP); }; ############################################################################# diff --git a/interimap.1 b/interimap.1 index 78f2e5f..621d968 100644 --- a/interimap.1 +++ b/interimap.1 @@ -352,11 +352,6 @@ for more information. File containing trusted certificates to use during server certificate authentication if \(lq\fISSL_verify\fR=YES\(rq. -.SH SIGNALS - -Sending a \fBSIGHUP\fR to \fBInterIMAP\fR makes it print I/O statistics -and then resume synchronization. - .SH SUPPORTED EXTENSIONS Performance is better for servers supporting the following extensions to -- cgit v1.2.3