Fix a couple of bugs in pg_recvlogical output to stdout.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 00c26b6a60e7ceed29ddae34b0a69fe945c08f81
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2014-05-15T16:47:48Z
Releases: 9.4.0
Fix a couple of bugs in pg_recvlogical output to stdout.

Don't close stdout on SIGHUP. Also, when a SIGHUP is received, close the
file immediately, rather than only after receiving some more data from
the server. Rename a variable, to avoid mentally dealing with double
negatives (not unsynced means synced).

Files

PathChange+/−
src/bin/pg_basebackup/pg_recvlogical.c modified +22 −25