]> granicus.if.org Git - postgresql/commit
Fix a couple of bugs in pg_recvlogical output to stdout.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 15 May 2014 16:43:37 +0000 (19:43 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 15 May 2014 16:47:48 +0000 (19:47 +0300)
commit00c26b6a60e7ceed29ddae34b0a69fe945c08f81
tree13d80f0ef5a9af0fe6aa548a83e9c5a0b0ba5a6a
parent8f9b9590d79fc1fc1ad08b207401acfdbb0bfac7
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).
src/bin/pg_basebackup/pg_recvlogical.c