Module Name:    src
Committed By:   christos
Date:           Thu Nov  7 20:09:55 UTC 2013

Modified Files:
        src/external/gpl2/xcvs/dist/src: exithandle.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl2/xcvs/dist/src/exithandle.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl2/xcvs/dist/src/exithandle.c
diff -u src/external/gpl2/xcvs/dist/src/exithandle.c:1.2 src/external/gpl2/xcvs/dist/src/exithandle.c:1.3
--- src/external/gpl2/xcvs/dist/src/exithandle.c:1.2	Wed Oct 30 10:25:47 2013
+++ src/external/gpl2/xcvs/dist/src/exithandle.c	Thu Nov  7 15:09:55 2013
@@ -30,7 +30,7 @@ signals_register (RETSIGTYPE (*handler)(
 	(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);

Reply via email to