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 Don't use SIG_register to regist...



details:   https://anonhg.NetBSD.org/src/rev/d2a28522edf5
branches:  trunk
changeset: 791187:d2a28522edf5
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Nov 07 20:09:55 2013 +0000

description:
Don't use SIG_register to register a SIG_IGN handler. It thinks it registers
a fucntion, but then it ends up calling (*1)(13) with all signals blocked
so cvs spins (with all signal blocked, getting SEGV). Use plain signal instead
To reproduce: cvs log file | less and quit.

diffstat:

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

diffs (12 lines):

diff -r d773d4a9740b -r d2a28522edf5 external/gpl2/xcvs/dist/src/exithandle.c
--- a/external/gpl2/xcvs/dist/src/exithandle.c  Thu Nov 07 19:52:56 2013 +0000
+++ b/external/gpl2/xcvs/dist/src/exithandle.c  Thu Nov 07 20:09:55 2013 +0000
@@ -30,7 +30,7 @@
        (void) SIG_register (SIGQUIT, handler);
 #endif
 #ifdef SIGPIPE
-       (void) SIG_register (SIGPIPE, SIG_IGN);
+       (void) signal (SIGPIPE, SIG_IGN);
 #endif
 #ifdef SIGTERM
        (void) SIG_register (SIGTERM, handler);



Home | Main Index | Thread Index | Old Index