forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9fb8cd2
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 parentf1f3bcb commit9fb8cd2
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 | |
---|---|---|---|
| |||
2470 | 2470 |
| |
2471 | 2471 |
| |
2472 | 2472 |
| |
2473 |
| - | |
| 2473 | + | |
2474 | 2474 |
| |
2475 | 2475 |
| |
2476 | 2476 |
| |
|
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
352 | 352 |
| |
353 | 353 |
| |
354 | 354 |
| |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
355 | 369 |
| |
356 | 370 |
| |
357 | 371 |
| |
|
0 commit comments
Comments
(0)