forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitef848f4
committed
Use standard SIGTERM signal handler die() in test_shm_mq worker.
Previously test_shm_mq worker used the stripped-down version of die()as the SIGTERM signal handler. This commit makes it use die(), instead,to simplify the code.In terms of the code, the difference between die() and the stripped-downversion previously used is whether the signal handler directly may callProcessInterrupts() or not. But this difference doesn't exist ina background worker because, in bgworker, DoingCommandRead flag willnever be true and die() will never call ProcessInterrupts() directly.Therefore test_shm_mq worker can safely use die(), like other bgworkerproceses (e.g., logical replication apply launcher or autoprewarm worker)currently do.Thanks to Craig Ringer for the report and investigation of the issue.Author: Bharath RupireddyReviewed-by: Fujii MasaoDiscussion:https://postgr.es/m/CAGRY4nxsAe_1k_9g5b47orA0S011iBoHsXHFMH7cg7HV0O1bwQ@mail.gmail.com1 parent2a08477 commitef848f4
1 file changed
+3
-25
lines changedLines changed: 3 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
| 27 | + | |
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
30 |
| - | |
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
61 |
| - | |
62 |
| - | |
| 61 | + | |
63 | 62 |
| |
64 |
| - | |
| 63 | + | |
65 | 64 |
| |
66 | 65 |
| |
67 | 66 |
| |
| |||
196 | 195 |
| |
197 | 196 |
| |
198 | 197 |
| |
199 |
| - | |
200 |
| - | |
201 |
| - | |
202 |
| - | |
203 |
| - | |
204 |
| - | |
205 |
| - | |
206 |
| - | |
207 |
| - | |
208 |
| - | |
209 |
| - | |
210 |
| - | |
211 |
| - | |
212 |
| - | |
213 |
| - | |
214 |
| - | |
215 |
| - | |
216 |
| - | |
217 |
| - | |
218 |
| - | |
219 |
| - |
0 commit comments
Comments
(0)