• Alvaro Herrera's avatar
    Fix various bugs in postmaster SIGKILL processing · bf261798
    Alvaro Herrera authored
    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: MauMau
    bf261798
postmaster.c 163 KB