Commit bf26179
committed
Fix various bugs in postmaster SIGKILL processing
Clamp the minimum sleep time during immediate shutdown or crash to a
minimum of zero, not a maximum of one second. The previous code could
result in a negative sleep time, leading to failure in select() calls.
Also, on crash recovery, reset AbortStartTime as soon as SIGKILL is sent
or abort processing has commenced instead of waiting until the startup
process completes. Reset AbortStartTime as soon as SIGKILL is sent,
too, to avoid doing that repeatedly.
Per trouble report from Jeff Janes on
CAMkU=1xd3=wFqZwwuXPWe4BQs3h1seYo8LV9JtSjW5RodoPxMg@mail.gmail.com
Author: MauMau1 parent 2d6c0f1 commit bf26179
1 file changed
+10
-5
lines changed| 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