forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6f1a407
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 parent27942ba commit6f1a407
File tree
3 files changed
+21
-7
lines changed- contrib/worker_spi
- src/backend/replication
3 files changed
+21
-7
lines changedLines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
82 |
| - | |
| 82 | + | |
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
| 88 | + | |
| 89 | + | |
88 | 90 |
| |
89 | 91 |
| |
90 | 92 |
| |
| 93 | + | |
| 94 | + | |
91 | 95 |
| |
92 | 96 |
| |
93 | 97 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
737 | 737 |
| |
738 | 738 |
| |
739 | 739 |
| |
| 740 | + | |
| 741 | + | |
740 | 742 |
| |
| 743 | + | |
| 744 | + | |
741 | 745 |
| |
742 | 746 |
| |
743 | 747 |
| |
|
Lines changed: 12 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1214 | 1214 |
| |
1215 | 1215 |
| |
1216 | 1216 |
| |
1217 |
| - | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
1218 | 1228 |
| |
1219 | 1229 |
| |
1220 | 1230 |
| |
1221 | 1231 |
| |
1222 | 1232 |
| |
1223 |
| - | |
1224 |
| - | |
1225 |
| - | |
1226 |
| - | |
1227 |
| - | |
| 1233 | + | |
1228 | 1234 |
| |
1229 | 1235 |
| |
1230 | 1236 |
| |
|
0 commit comments
Comments
(0)