]> granicus.if.org Git - postgresql/commit
Properly send SCM status updates when shutting down service on Windows
authorMagnus Hagander <magnus@hagander.net>
Thu, 7 May 2015 13:04:13 +0000 (15:04 +0200)
committerMagnus Hagander <magnus@hagander.net>
Thu, 7 May 2015 13:09:53 +0000 (15:09 +0200)
commitb9ded152904bba708a4332cf535098be46bb20b2
treece94b5f5087646ac5f6266fca94e42f7d0e838cc
parent272f99f8ad88c0253926113e3e19ee8da1513ef1
Properly send SCM status updates when shutting down service on Windows

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
src/bin/pg_ctl/pg_ctl.c