]> Pileus Git - ~andy/fetchmail/commitdiff
Ignore SIGPIPE, EPIPE must suffice as error.
authorMatthias Andree <matthias.andree@gmx.de>
Mon, 14 Aug 2006 00:59:12 +0000 (00:59 -0000)
committerMatthias Andree <matthias.andree@gmx.de>
Mon, 14 Aug 2006 00:59:12 +0000 (00:59 -0000)
Calling longjmp() from a signal handler is unsafe.

svn path=/branches/BRANCH_6-3/; revision=4894

fetchmail.c

index d417ab38756f01a0c7171970d8cbdb686368ac68..4657e913d025ef15572ff1d1d7beb9d420ad2afa 100644 (file)
@@ -590,7 +590,7 @@ int main(int argc, char **argv)
     set_signal_handler(SIGINT, terminate_run);
     set_signal_handler(SIGTERM, terminate_run);
     set_signal_handler(SIGALRM, terminate_run);
-    set_signal_handler(SIGPIPE, terminate_run);
+    set_signal_handler(SIGPIPE, SIG_IGN);
     set_signal_handler(SIGQUIT, terminate_run);
 
     /* here's the exclusion lock */