forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita68a894
committed
Fix setvbuf()-induced crash in libpq_pipeline
Windows doesn't like setvbuf(..., _IOLBF) and crashes if you use it,which has been causing the libpq_pipeline failures all along ... and ourown port.h has known about it for a long time: it offers PG_IOLBF that'sdefined to _IONBF on that platform. Follow its advice.While at it, get rid of a bogus bitshift that used a constant of thewrong size. Decorate the constant as LL to fix. While at it, remove apointless addition that only confused matters.All as diagnosed by Tom Lane.Discussion:https://postgr.es/m/3458958.1617302154@sss.pgh.pa.us1 parent3b6c125 commita68a894
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
724 | 724 | | |
725 | 725 | | |
726 | 726 | | |
727 | | - | |
728 | | - | |
| 727 | + | |
| 728 | + | |
729 | 729 | | |
730 | 730 | | |
731 | 731 | | |
| |||
1324 | 1324 | | |
1325 | 1325 | | |
1326 | 1326 | | |
1327 | | - | |
| 1327 | + | |
1328 | 1328 | | |
1329 | 1329 | | |
1330 | 1330 | | |
| |||
0 commit comments
Comments
(0)