Kill pg_basebackup background process when exiting
Magnus 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.
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_basebackup/pg_basebackup.c | modified | +21 −0 |
| src/bin/pg_basebackup/pg_receivexlog.c | modified | +7 −0 |
| src/bin/pg_basebackup/streamutil.h | modified | +0 −7 |