• Magnus Hagander's avatar
    Properly send SCM status updates when shutting down service on Windows · 1a241d22
    Magnus Hagander authored
    The Service Control Manager should be notified regularly during a shutdown
    that takes a long time. Previously we would increaes the counter, but forgot
    to actually send the notification to the system. The loop counter was also
    incorrectly initalized in the event that the startup of the system took long
    enough for it to increase, which could cause the shutdown process not to wait
    as long as expected.
    
    Krystian Bigaj, reviewed by Michael Paquier
    1a241d22
pg_ctl.c 61.5 KB