forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb9784e1
committed
In Windows pg_dump, ensure idle workers will shut down during error exit.
The Windows coding of ShutdownWorkersHard() thought that setting termEventwas sufficient to make workers exit after an error. But that only helpsif a worker is busy and passes through checkAborting(). An idle workerwill just sit, resulting in pg_dump failing to exit until the user gives upand hits control-C. We should close the write end of the command pipeso that idle workers will see socket EOF and exit, as the Unix coding wasalready doing.Back-patch to 9.3 where parallel pg_dump was introduced.Kyotaro Horiguchi1 parent6537a48 commitb9784e1
1 file changed
+6
-8
lines changedLines changed: 6 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
301 | 301 |
| |
302 | 302 |
| |
303 | 303 |
| |
304 |
| - | |
305 |
| - | |
306 |
| - | |
307 |
| - | |
| 304 | + | |
308 | 305 |
| |
309 | 306 |
| |
310 | 307 |
| |
311 | 308 |
| |
312 |
| - | |
313 | 309 |
| |
314 | 310 |
| |
315 | 311 |
| |
316 |
| - | |
317 |
| - | |
| 312 | + | |
| 313 | + | |
318 | 314 |
| |
319 | 315 |
| |
320 | 316 |
| |
321 | 317 |
| |
| 318 | + | |
| 319 | + | |
322 | 320 |
| |
323 | 321 |
| |
324 | 322 |
| |
325 |
| - | |
| 323 | + | |
326 | 324 |
| |
327 | 325 |
| |
328 | 326 |
| |
|
0 commit comments
Comments
(0)