pgsql: Properly send SCM status updates when shutting down service on W - Mailing list pgsql-committers

From Magnus Hagander
Subject pgsql: Properly send SCM status updates when shutting down service on W
Date
Msg-id E1YqLid-0003aN-D9@gemulon.postgresql.org
Whole thread Raw
List 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_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/447e16581779e2a74a1e46753f25577646db7d3b

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


pgsql-committers by date:

Previous
From: Magnus Hagander
Date:
Subject: pgsql: Fix minor resource leak in pg_dump
Next
From: Magnus Hagander
Date:
Subject: pgsql: Properly send SCM status updates when shutting down service on W