Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl2/xcvs/dist/src Ignore SIGPIPE; this is silly, w...



details:   https://anonhg.NetBSD.org/src/rev/277d505e39a3
branches:  trunk
changeset: 791006:277d505e39a3
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Oct 30 14:25:47 2013 +0000

description:
Ignore SIGPIPE; this is silly, we are getting EOF from a client, then while
processing the error SIGPIPE comes because the client closed the connection,
and then we end up calling error() while processing the error which prints
silly messages on the console because it logs with LOG_EMERG.

diffstat:

 external/gpl2/xcvs/dist/src/exithandle.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 03fafb1ad379 -r 277d505e39a3 external/gpl2/xcvs/dist/src/exithandle.c
--- a/external/gpl2/xcvs/dist/src/exithandle.c  Wed Oct 30 13:08:14 2013 +0000
+++ b/external/gpl2/xcvs/dist/src/exithandle.c  Wed Oct 30 14:25:47 2013 +0000
@@ -30,7 +30,7 @@
        (void) SIG_register (SIGQUIT, handler);
 #endif
 #ifdef SIGPIPE
-       (void) SIG_register (SIGPIPE, handler);
+       (void) SIG_register (SIGPIPE, SIG_IGN);
 #endif
 #ifdef SIGTERM
        (void) SIG_register (SIGTERM, handler);



Home | Main Index | Thread Index | Old Index