- Notifications
You must be signed in to change notification settings - Fork5
Commitbf26179
committed
Fix various bugs in postmaster SIGKILL processing
Clamp the minimum sleep time during immediate shutdown or crash to aminimum of zero, not a maximum of one second. The previous code couldresult in a negative sleep time, leading to failure in select() calls.Also, on crash recovery, reset AbortStartTime as soon as SIGKILL is sentor abort processing has commenced instead of waiting until the startupprocess completes. Reset AbortStartTime as soon as SIGKILL is sent,too, to avoid doing that repeatedly.Per trouble report from Jeff Janes onCAMkU=1xd3=wFqZwwuXPWe4BQs3h1seYo8LV9JtSjW5RodoPxMg@mail.gmail.comAuthor: MauMau1 parent2d6c0f1 commitbf26179
1 file changed
+10
-5
lines changedLines changed: 10 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1422 | 1422 |
| |
1423 | 1423 |
| |
1424 | 1424 |
| |
1425 |
| - | |
1426 |
| - | |
1427 |
| - | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
1428 | 1428 |
| |
1429 | 1429 |
| |
1430 | 1430 |
| |
| |||
1676 | 1676 |
| |
1677 | 1677 |
| |
1678 | 1678 |
| |
| 1679 | + | |
1679 | 1680 |
| |
1680 | 1681 |
| |
1681 | 1682 |
| |
1682 | 1683 |
| |
| 1684 | + | |
| 1685 | + | |
1683 | 1686 |
| |
1684 | 1687 |
| |
1685 | 1688 |
| |
| |||
2584 | 2587 |
| |
2585 | 2588 |
| |
2586 | 2589 |
| |
2587 |
| - | |
| 2590 | + | |
2588 | 2591 |
| |
2589 | 2592 |
| |
2590 | 2593 |
| |
| |||
3544 | 3547 |
| |
3545 | 3548 |
| |
3546 | 3549 |
| |
| 3550 | + | |
| 3551 | + | |
3547 | 3552 |
| |
3548 | 3553 |
| |
3549 | 3554 |
| |
| |||
4737 | 4742 |
| |
4738 | 4743 |
| |
4739 | 4744 |
| |
4740 |
| - | |
| 4745 | + | |
4741 | 4746 |
| |
4742 | 4747 |
| |
4743 | 4748 |
| |
|
0 commit comments
Comments
(0)