pgsql: Kill pg_basebackup background process when exiting

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Kill pg_basebackup background process when exiting
Date: 2014-02-12 17:46:48
Message-ID: E1WDdtY-0002fb-Ee@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/63ab2befe0d2332a5571f46c1a2c0af9447c6a4b

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

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2014-02-12 18:47:43 Re: pgsql: Kill pg_basebackup background process when exiting
Previous Message Tom Lane 2014-02-12 17:04:00 pgsql: Use --disable-auto-import linker switch in Mingw builds, too.