]> git.ipfire.org Git - thirdparty/postgresql.git/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:10:01 +0000 (15:10 +0200)
commit78ce2dc8ee5dc393a2b2806bef922215e82d9db7
treeda20de0f7dd26d7603aaa57e381d1dde8c098449
parentba7bee837ec1cee4809cdbaeba2104be37dee5dc
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