pgsql: Kill pg_basebackup background process when exiting

Started by Magnus Haganderover 12 years ago1 messagescomitters
Jump to latest
#1Magnus Hagander
magnus@hagander.net

Kill pg_basebackup background process when exiting

If an error occurs in the foreground (backup) process of pg_basebackup,
and we exit in a controlled way, the background process (streaming
xlog process) would stay around and keep streaming.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/0ae288d2dd7c0b6725feebbcf799a4d65e057d05

Modified Files
--------------
src/bin/pg_basebackup/pg_basebackup.c | 21 +++++++++++++++++++++
src/bin/pg_basebackup/pg_receivexlog.c | 7 +++++++
src/bin/pg_basebackup/streamutil.h | 7 -------
3 files changed, 28 insertions(+), 7 deletions(-)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers