- Notifications
You must be signed in to change notification settings - Fork28
Commit80259d4
committed
While waiting for a condition variable, detect postmaster death.
The general assumption for postmaster child processes is that theyshould just exit(1), reasonably promptly, if the postmaster disappears.condition_variable.c neglected this consideration and could be leftwaiting forever, if the counterpart process it is waiting for hasdone the right thing and exited.We had some discussion of adjusting the WaitEventSet API to make itharder to make this type of mistake in future; but for the moment,and for v10, let's make this narrow fix.Discussion:https://postgr.es/m/20412.1515456143@sss.pgh.pa.us1 parentc3d41cc commit80259d4
1 file changed
+14
-3
lines changedLines changed: 14 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
72 |
| - | |
| 72 | + | |
73 | 73 |
| |
74 | 74 |
| |
| 75 | + | |
| 76 | + | |
75 | 77 |
| |
76 | 78 |
| |
77 | 79 |
| |
| |||
149 | 151 |
| |
150 | 152 |
| |
151 | 153 |
| |
152 |
| - | |
153 |
| - | |
| 154 | + | |
| 155 | + | |
154 | 156 |
| |
155 | 157 |
| |
156 | 158 |
| |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
157 | 168 |
| |
158 | 169 |
| |
159 | 170 |
| |
|
0 commit comments
Comments
(0)