Fix poll() implementation of WaitLatchOrSocket to notice postmaster death.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Fix poll() implementation of WaitLatchOrSocket to notice postmaster death. When the remote end of the pipe is closed, select() reports the fd as readable, but poll() has a separate POLLHUP return code for that. Spotted by Peter Geoghegan.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/port/unix_latch.c | modified | +6 −1 |