forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0177f43
committed
Fix oversight: in case where SIGTERM is received while there are
live backends, the archiver and stats processes never got sent akill signal. They'd eventually exit on their own, but not for awhile,which is a bit annoying when you are trying to replace the executablefile on a platform that doesn't allow removal of busy executables.Also, tweak main loop logic so that we will perform the backgroundtasks after select() returns EINTR.1 parent23671f5 commit0177f43
1 file changed
+19
-7
lines changedLines changed: 19 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| |||
1154 | 1154 |
| |
1155 | 1155 |
| |
1156 | 1156 |
| |
1157 |
| - | |
1158 |
| - | |
1159 |
| - | |
1160 |
| - | |
1161 |
| - | |
1162 |
| - | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
1163 | 1164 |
| |
1164 | 1165 |
| |
1165 | 1166 |
| |
| |||
2014 | 2015 |
| |
2015 | 2016 |
| |
2016 | 2017 |
| |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
2017 | 2023 |
| |
2018 | 2024 |
| |
2019 | 2025 |
| |
| |||
2095 | 2101 |
| |
2096 | 2102 |
| |
2097 | 2103 |
| |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
2098 | 2110 |
| |
2099 | 2111 |
| |
2100 | 2112 |
| |
|
0 commit comments
Comments
(0)