- Notifications
You must be signed in to change notification settings - Fork5
Commit3c07fbf
committed
Use pqsignal() in contrib programs rather than calling signal(2) directly.
The semantics of signal(2) are more variable than one could wish; inparticular, on strict-POSIX platforms the signal handler will be resetto SIG_DFL when the signal is delivered. This demonstrably breakspg_test_fsync's use of SIGALRM. The other changes I made are notabsolutely necessary today, because the called handlers all exit theprogram anyway. But it seems like a good general practice to usepqsignal() exclusively in Postgres code, now that we have it availableeverywhere.1 parentb1fae82 commit3c07fbf
2 files changed
+8
-8
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
549 | 549 |
| |
550 | 550 |
| |
551 | 551 |
| |
552 |
| - | |
| 552 | + | |
553 | 553 |
| |
554 | 554 |
| |
555 | 555 |
| |
| |||
592 | 592 |
| |
593 | 593 |
| |
594 | 594 |
| |
595 |
| - | |
596 |
| - | |
597 |
| - | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
598 | 598 |
| |
599 | 599 |
| |
600 | 600 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
101 | 101 |
| |
102 | 102 |
| |
103 | 103 |
| |
104 |
| - | |
105 |
| - | |
| 104 | + | |
| 105 | + | |
106 | 106 |
| |
107 |
| - | |
| 107 | + | |
108 | 108 |
| |
109 | 109 |
| |
110 | 110 |
| |
111 |
| - | |
| 111 | + | |
112 | 112 |
| |
113 | 113 |
| |
114 | 114 |
| |
|
0 commit comments
Comments
(0)