]> granicus.if.org Git - postgresql/commit
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:45:18 +0000 (18:45 +0100)
commit63ab2befe0d2332a5571f46c1a2c0af9447c6a4b
treec4f88602bed8864d70a9cfbe80d51ad3c35f6e12
parent1c9acd5c86a71b8ab73bc139eb5e0ad292b9a7d4
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