summaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.c
diff options
context:
space:
mode:
authorTom Lane2014-05-15 01:14:02 +0000
committerTom Lane2014-05-15 01:14:02 +0000
commit360ec00a57964ce27c4ee064b7313d55dbf2fb9f (patch)
tree66acff4f8428289e61fd0bdc654ed0740925e1d0 /src/tutorial/funcs.c
parent1913d0f28d6ad1ccebba1035e7c319b1ff4a8b02 (diff)
In initdb, ensure stdout/stderr buffering behavior is what we expect.
Since this program may print to either stdout or stderr, the relative ordering of its messages depends on the buffering behavior of those files. Force stdout to be line-buffered and stderr to be unbuffered, ensuring that the behavior will match standard Unix interactive behavior, even when stdout and stderr are rerouted to a file. Per complaint from Tomas Vondra. The particular case he pointed out is new in HEAD, but issues of the same sort could arise in any branch with other error messages, so back-patch to all branches. I'm unsure whether we might not want to do this in other client programs as well. For the moment, just fix initdb.
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions