forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork0
Commit52d2f88
committed
In initdb, ensure stdout/stderr buffering behavior is what we expect.
Since this program may print to either stdout or stderr, the relativeordering of its messages depends on the buffering behavior of those files.Force stdout to be line-buffered and stderr to be unbuffered, ensuringthat the behavior will match standard Unix interactive behavior, evenwhen stdout and stderr are rerouted to a file.Per complaint from Tomas Vondra. The particular case he pointed out isnew in HEAD, but issues of the same sort could arise in any branch withother error messages, so back-patch to all branches.I'm unsure whether we might not want to do this in other client programsas well. For the moment, just fix initdb.1 parente31d77c commit52d2f88
1 file changed
+9
-0
lines changedLines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2510 | 2510 |
| |
2511 | 2511 |
| |
2512 | 2512 |
| |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
| 2517 | + | |
| 2518 | + | |
| 2519 | + | |
| 2520 | + | |
| 2521 | + | |
2513 | 2522 |
| |
2514 | 2523 |
| |
2515 | 2524 |
| |
|
0 commit comments
Comments
(0)