Fix poll() implementation of WaitLatchOrSocket to notice postmaster death.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: b2b4af535eb733ba0c2ea6eeb2b14cac7f1ca4be
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2012-01-15T20:08:03Z
Releases: 9.2.0
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

PathChange+/−
src/backend/port/unix_latch.c modified +6 −1