Kill pg_basebackup background process when exiting
authorMagnus Hagander <magnus@hagander.net>
Sun, 9 Feb 2014 12:10:14 +0000 (13:10 +0100)
committerMagnus Hagander <magnus@hagander.net>
Wed, 12 Feb 2014 17:46:04 +0000 (18:46 +0100)
commitc90204c605b7e12858e52b6af6efdbf3cb1c1bc4
treeb06a19a3b9db620105c4d6a1e6500f9893c7914a
parent8247236c639d08724ed13104c2acf8b322a735f0
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.
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_basebackup/pg_receivexlog.c
src/bin/pg_basebackup/streamutil.h