forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork0
Commit1dd0b3e
committed
Fix unportable setvbuf() usage in initdb.
In yesterday's commit2dc4f01, I triedto force buffering of stdout/stderr in initdb to be what it is bydefault when the program is run interactively on Unix (since that's howmost manual testing is done). This tripped over the fact that Windowsdoesn't support _IOLBF mode. We dealt with that a long time ago insyslogger.c by falling back to unbuffered mode on Windows. Export thatsolution in port.h and use it in initdb.Back-patch to 8.4, like the previous commit.1 parent56693cf commit1dd0b3e
File tree
3 files changed
+21
-18
lines changed- src
- backend/postmaster
- bin/initdb
- include
3 files changed
+21
-18
lines changedLines changed: 6 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 | 48 |
| |
60 | 49 |
| |
61 | 50 |
| |
| |||
561 | 550 |
| |
562 | 551 |
| |
563 | 552 |
| |
564 |
| - | |
| 553 | + | |
565 | 554 |
| |
566 | 555 |
| |
567 | 556 |
| |
| |||
709 | 698 |
| |
710 | 699 |
| |
711 | 700 |
| |
712 |
| - | |
| 701 | + | |
713 | 702 |
| |
714 | 703 |
| |
715 | 704 |
| |
| |||
719 | 708 |
| |
720 | 709 |
| |
721 | 710 |
| |
722 |
| - | |
| 711 | + | |
723 | 712 |
| |
724 | 713 |
| |
725 | 714 |
| |
| |||
1062 | 1051 |
| |
1063 | 1052 |
| |
1064 | 1053 |
| |
1065 |
| - | |
| 1054 | + | |
1066 | 1055 |
| |
1067 | 1056 |
| |
1068 | 1057 |
| |
| |||
1148 | 1137 |
| |
1149 | 1138 |
| |
1150 | 1139 |
| |
1151 |
| - | |
| 1140 | + | |
1152 | 1141 |
| |
1153 | 1142 |
| |
1154 | 1143 |
| |
| |||
1205 | 1194 |
| |
1206 | 1195 |
| |
1207 | 1196 |
| |
1208 |
| - | |
| 1197 | + | |
1209 | 1198 |
| |
1210 | 1199 |
| |
1211 | 1200 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2516 | 2516 |
| |
2517 | 2517 |
| |
2518 | 2518 |
| |
2519 |
| - | |
| 2519 | + | |
2520 | 2520 |
| |
2521 | 2521 |
| |
2522 | 2522 |
| |
|
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
341 | 341 |
| |
342 | 342 |
| |
343 | 343 |
| |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
344 | 358 |
| |
345 | 359 |
| |
346 | 360 |
| |
|
0 commit comments
Comments
(0)