forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit214c7a4
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 parent7e1531a commit214c7a4
File tree
3 files changed
+22
-7
lines changed- contrib/worker_spi
- src/backend/replication
3 files changed
+22
-7
lines changedLines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
| 45 | + | |
45 | 46 |
| |
46 | 47 |
| |
47 | 48 |
| |
| |||
82 | 83 |
| |
83 | 84 |
| |
84 | 85 |
| |
85 |
| - | |
| 86 | + | |
86 | 87 |
| |
87 | 88 |
| |
88 | 89 |
| |
89 | 90 |
| |
90 | 91 |
| |
| 92 | + | |
| 93 | + | |
91 | 94 |
| |
92 | 95 |
| |
93 | 96 |
| |
| 97 | + | |
| 98 | + | |
94 | 99 |
| |
95 | 100 |
| |
96 | 101 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
740 | 740 |
| |
741 | 741 |
| |
742 | 742 |
| |
| 743 | + | |
| 744 | + | |
743 | 745 |
| |
| 746 | + | |
| 747 | + | |
744 | 748 |
| |
745 | 749 |
| |
746 | 750 |
| |
|
Lines changed: 12 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1401 | 1401 |
| |
1402 | 1402 |
| |
1403 | 1403 |
| |
1404 |
| - | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
1405 | 1415 |
| |
1406 | 1416 |
| |
1407 | 1417 |
| |
1408 | 1418 |
| |
1409 | 1419 |
| |
1410 |
| - | |
1411 |
| - | |
1412 |
| - | |
1413 |
| - | |
1414 |
| - | |
| 1420 | + | |
1415 | 1421 |
| |
1416 | 1422 |
| |
1417 | 1423 |
| |
|
0 commit comments
Comments
(0)