Fix a couple of bugs in pg_recvlogical output to stdout.
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).

Postgres-XL/Postgres-XL,ashwinstar/gpdb,xinzweb/gpdb,pavanvd/postgres-xl,adam8157/gpdb,ashwinstar/gpdb,adam8157/gpdb,greenplum-db/gpdb,pavanvd/postgres-xl,techdragon/Postgres-XL,zeroae/postgres-xl,xinzweb/gpdb,techdragon/Postgres-XL,yazun/postgres-xl,pavanvd/postgres-xl,lisakowen/gpdb,yazun/postgres-xl,50wu/gpdb,greenplum-db/gpdb,ovr/postgres-xl,ovr/postgres-xl,adam8157/gpdb,50wu/gpdb,adam8157/gpdb,50wu/gpdb,ovr/postgres-xl,pavanvd/postgres-xl,ashwinstar/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,lisakowen/gpdb,lisakowen/gpdb,adam8157/gpdb,50wu/gpdb,oberstet/postgres-xl,Postgres-XL/Postgres-XL,Postgres-XL/Postgres-XL,yazun/postgres-xl,adam8157/gpdb,50wu/gpdb,jmcatamney/gpdb,lisakowen/gpdb,Postgres-XL/Postgres-XL,lisakowen/gpdb,greenplum-db/gpdb,xinzweb/gpdb,yazun/postgres-xl,techdragon/Postgres-XL,zeroae/postgres-xl,pavanvd/postgres-xl,jmcatamney/gpdb,adam8157/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,50wu/gpdb,adam8157/gpdb,oberstet/postgres-xl,lisakowen/gpdb,jmcatamney/gpdb,zeroae/postgres-xl,lisakowen/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,yazun/postgres-xl,xinzweb/gpdb,xinzweb/gpdb,xinzweb/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,techdragon/Postgres-XL,jmcatamney/gpdb,jmcatamney/gpdb,zeroae/postgres-xl,xinzweb/gpdb,50wu/gpdb,techdragon/Postgres-XL,ovr/postgres-xl,50wu/gpdb,lisakowen/gpdb,Postgres-XL/Postgres-XL,jmcatamney/gpdb,ovr/postgres-xl,ashwinstar/gpdb,zeroae/postgres-xl,jmcatamney/gpdb,oberstet/postgres-xl,greenplum-db/gpdb,xinzweb/gpdb,oberstet/postgres-xl,oberstet/postgres-xl