pgsql: Restore SIGFPE handler after initializing PL/Perl. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Restore SIGFPE handler after initializing PL/Perl.
Date
Msg-id E1T9MSa-00082a-1M@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/28ab4a5aabeec1db7e9d6fd14c26cc92ccb670a2

Modified Files
--------------
src/pl/plperl/plperl.c |   14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Restore SIGFPE handler after initializing PL/Perl.
Next
From: Andrew Dunstan
Date:
Subject: pgsql: Fix line end mishandling in pg_upgrade on Windows.