- Notifications
You must be signed in to change notification settings - Fork28
Commitc0077f7
committed
On Windows, retry process creation if we fail to reserve shared memory.
We've heard occasional reports of backend launch failing becausepgwin32_ReserveSharedMemoryRegion() fails, indicating that somethinghas already used that address space in the child process. It's notvery clear what, given that we disable ASLR in Windows builds, butsuspicion falls on antivirus products. It'd be better if we didn'thave to disable ASLR, anyway. So let's try to ameliorate the problemby retrying the process launch after such a failure, up to 100 times.Patch by me, based on previous work by Amit Kapila and others.This is a longstanding issue, so back-patch to all supported branches.Discussion:https://postgr.es/m/CAA4eK1+R6hSx6t_yvwtx+NRzneVp+MRqXAdGJZChcau8Uij-8g@mail.gmail.com1 parentef68c9f commitc0077f7
1 file changed
+15
-7
lines changedLines changed: 15 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4447 | 4447 |
| |
4448 | 4448 |
| |
4449 | 4449 |
| |
| 4450 | + | |
4450 | 4451 |
| |
4451 | 4452 |
| |
4452 | 4453 |
| |
| |||
4464 | 4465 |
| |
4465 | 4466 |
| |
4466 | 4467 |
| |
| 4468 | + | |
| 4469 | + | |
| 4470 | + | |
4467 | 4471 |
| |
4468 | 4472 |
| |
4469 | 4473 |
| |
| |||
4555 | 4559 |
| |
4556 | 4560 |
| |
4557 | 4561 |
| |
4558 |
| - | |
| 4562 | + | |
| 4563 | + | |
| 4564 | + | |
| 4565 | + | |
4559 | 4566 |
| |
4560 | 4567 |
| |
4561 | 4568 |
| |
4562 |
| - | |
4563 |
| - | |
4564 |
| - | |
4565 |
| - | |
| 4569 | + | |
4566 | 4570 |
| |
4567 | 4571 |
| |
4568 | 4572 |
| |
4569 | 4573 |
| |
4570 | 4574 |
| |
4571 | 4575 |
| |
4572 |
| - | |
4573 |
| - | |
| 4576 | + | |
| 4577 | + | |
| 4578 | + | |
| 4579 | + | |
| 4580 | + | |
| 4581 | + | |
4574 | 4582 |
| |
4575 | 4583 |
| |
4576 | 4584 |
| |
|
0 commit comments
Comments
(0)