Kill pg_basebackup background process when exiting

Magnus Hagander <magnus@hagander.net>

Commit: 0ae288d2dd7c0b6725feebbcf799a4d65e057d05
Author: Magnus Hagander <magnus@hagander.net>
Date: 2014-02-12T13:51:00Z
Releases: 9.2.7
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.

Files