forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit31ad655
committed
Fix WaitLatchOrSocket to handle EOF on socket correctly.
When using poll(), EOF on a socket is reported with the POLLHUP notPOLLIN flag (at least on Linux). WaitLatchOrSocket failed to checkthis bit, causing it to go into a busy-wait loop if EOF occurs.We earlier fixed the same mistake in the test for the state of thepostmaster_alive socket, but missed it for the caller-supplied socket.Fortunately, this error is new in 9.2, since 9.1 only had a select()based code path not a poll() based one.1 parentd36eaa2 commit31ad655
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
293 | 293 |
| |
294 | 294 |
| |
295 | 295 |
| |
296 |
| - | |
| 296 | + | |
297 | 297 |
| |
298 | 298 |
| |
299 | 299 |
| |
|
0 commit comments
Comments
(0)