From: Tomas Doran Date: Sun, 10 Jan 2010 01:28:39 +0000 (+0000) Subject: Force signal handler installation so we can catch SIGPIPE. RT#5100 X-Git-Tag: 0.68_01~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9ab74998c5f012b91811ac6fb0a639a6843d9881;p=catagits%2Ffcgi2.git Force signal handler installation so we can catch SIGPIPE. RT#5100 --- diff --git a/libfcgi/os_unix.c b/libfcgi/os_unix.c index 6d7dc53..cbd65d8 100755 --- a/libfcgi/os_unix.c +++ b/libfcgi/os_unix.c @@ -181,7 +181,7 @@ int OS_LibInit(int stdioFds[3]) FD_ZERO(&readFdSetPost); FD_ZERO(&writeFdSetPost); - OS_InstallSignalHandlers(FALSE); + OS_InstallSignalHandlers(TRUE); libInitialized = TRUE; diff --git a/perl/ChangeLog b/perl/ChangeLog index 4153fc3..085acdb 100644 --- a/perl/ChangeLog +++ b/perl/ChangeLog @@ -1,3 +1,5 @@ + o Force signal handler installation so that we correctly install handlers + for SIGPIPE. Fixes RT#5100 o Make the PRINT method return the number of bytes written rather than undef to be consistent with the IO:: interface. Fixes RT#24347