forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5c0de38
committed
Fix pg_recvlogical not to fsync output when it's a tty or pipe.
The previous coding tried to handle possible failures when fsyncing atty or pipe fd by accepting EINVAL - but apparently someplatforms (windows, OSX) don't reliably return that. So instead checkwhether the output fd refers to a pipe or a tty when opening it.Reported-By: Olivier Gosseaume, Marko TiikkajaDiscussion: 559AF98B.3050901@joh.toBackpatch to 9.4, where pg_recvlogical was added.1 parent02eac01 commit5c0de38
1 file changed
+15
-2
lines changedLines changed: 15 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
| 53 | + | |
53 | 54 |
| |
54 | 55 |
| |
55 | 56 |
| |
| |||
177 | 178 |
| |
178 | 179 |
| |
179 | 180 |
| |
180 |
| - | |
181 |
| - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
182 | 186 |
| |
183 | 187 |
| |
184 | 188 |
| |
| |||
317 | 321 |
| |
318 | 322 |
| |
319 | 323 |
| |
| 324 | + | |
| 325 | + | |
320 | 326 |
| |
321 | 327 |
| |
322 | 328 |
| |
| |||
329 | 335 |
| |
330 | 336 |
| |
331 | 337 |
| |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
332 | 345 |
| |
333 | 346 |
| |
334 | 347 |
| |
|
0 commit comments
Comments
(0)