]> granicus.if.org Git - postgresql/commit
Restore SIGFPE handler after initializing PL/Perl.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 5 Sep 2012 20:43:55 +0000 (16:43 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 5 Sep 2012 20:43:55 +0000 (16:43 -0400)
commitf98d8d59a19ba4b745fb7d4795055540c9725cd6
tree34e886984b9dc0e7966ec1730db95989d39ddabb
parent3d27e4dfab80e36c826c1c55dbb6b91576e5ccc3
Restore SIGFPE handler after initializing PL/Perl.

Perl, for some unaccountable reason, believes it's a good idea to reset
SIGFPE handling to SIG_IGN.  Which wouldn't be a good idea even if it
worked; but on some platforms (Linux at least) it doesn't work at all,
instead resulting in forced process termination if the signal occurs.
Given the lack of other complaints, it seems safe to assume that Perl
never actually provokes SIGFPE and so there is no value in the setting
anyway.  Hence, reset it to our normal handler after initializing Perl.

Report, analysis and patch by Andres Freund.
src/pl/plperl/plperl.c