pgsql: Properly send SCM status updates when shutting down service on W

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Properly send SCM status updates when shutting down service on W
Date: 2015-05-07 13:20:03
Message-ID: E1YqLid-0003aI-CZ@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/43ed06816f8d9c591ca767a19d555044648cb8a2

Modified Files
--------------
src/bin/pg_ctl/pg_ctl.c | 28 ++++++++++++++++++++--------
1 file changed, 20 insertions(+), 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2015-05-07 14:26:15 pgsql: Makefile: Add comment that doc uninstall clears man directories
Previous Message Magnus Hagander 2015-05-07 09:42:54 pgsql: Fix minor resource leak in pg_dump