Re: Perl DBI sets $SIG{PIPE} to 'IGNORE'
[email protected] (damian keefe)
| Newsgroups | perl.dbi.users |
|---|---|
| Message-ID | <[email protected]> |
I'm no software engineer, but given that it is known that some of the libraries used by DBI 'mess with' signal dispositions in apparently unknown ways, would it not make sense for DBI.pm to preserve the state of %SIG on entry and reinstate it on disconnect/END/EXIT cheers Damian On 28 Jul 2010, at 19:22, Martin J. Evans wrote: >> > I suspect you'll find its your driver library that ignores SIGPIPE > as AFAIK, DBI does not. > Oracle's OCI library changes some signal dispositions for sure and > sometimes SIGPIPE/SIGCHLD. > > Martin > > <snipped example code>