forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit03f06ff
committed
Fix some more bugs in signal handlers and process shutdown logic.
WalSndKill was doing things exactly backwards: it should first clearMyWalSnd (to stop signal handlers from touching MyWalSnd->latch),then disown the latch, and only then mark the WalSnd struct unused byclearing its pid field.Also, WalRcvSigUsr1Handler and worker_spi_sighup failed to preserveerrno, which is surely a requirement for any signal handler.Per discussion of recent buildfarm failures. Back-patch as faras the relevant code exists.1 parente5c22c1 commit03f06ff
1 file changed
+12
-6
lines changedLines changed: 12 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
920 | 920 |
| |
921 | 921 |
| |
922 | 922 |
| |
923 |
| - | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
924 | 934 |
| |
925 | 935 |
| |
926 | 936 |
| |
927 | 937 |
| |
928 | 938 |
| |
929 |
| - | |
930 |
| - | |
931 |
| - | |
932 |
| - | |
933 |
| - | |
| 939 | + | |
934 | 940 |
| |
935 | 941 |
| |
936 | 942 |
| |
|
0 commit comments
Comments
(0)