forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5ee0f03
committed
Restore SIGFPE handler after initializing PL/Perl.
Perl, for some unaccountable reason, believes it's a good idea to resetSIGFPE handling to SIG_IGN. Which wouldn't be a good idea even if itworked; 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 Perlnever actually provokes SIGFPE and so there is no value in the settinganyway. Hence, reset it to our normal handler after initializing Perl.Report, analysis and patch by Andres Freund.1 parenta69b7a1 commit5ee0f03
1 file changed
+14
-0
lines changedLines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| 26 | + | |
26 | 27 |
| |
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
30 | 31 |
| |
| 32 | + | |
31 | 33 |
| |
32 | 34 |
| |
33 | 35 |
| |
| |||
740 | 742 |
| |
741 | 743 |
| |
742 | 744 |
| |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
743 | 757 |
| |
744 | 758 |
| |
745 | 759 |
| |
|
0 commit comments
Comments
(0)