aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2016-03-18 22:35:43 -0700
committerAndres Freund <andres@anarazel.de>2016-03-18 22:37:59 -0700
commit6eb2be15b5d24b98d334a9dd637f0edb37e2eb7e (patch)
tree78b8592639c056c54f7ca8d880f6b9c077761f63
parent07aed46a6b3994508e5674301c85ebf5807905ea (diff)
downloadpostgresql-6eb2be15b5d24b98d334a9dd637f0edb37e2eb7e.tar.gz
postgresql-6eb2be15b5d24b98d334a9dd637f0edb37e2eb7e.zip
Fix stupid omission in c4901a1e.
Reported-By: Jeff Janes Discussion: CAMkU=1zGxREwoyaCrp_CHadEB+dPgpVyKBysCJ+6xP9gCOvAuw@mail.gmail.com
-rw-r--r--src/backend/port/unix_latch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/port/unix_latch.c b/src/backend/port/unix_latch.c
index 104401d0feb..63b76c650f0 100644
--- a/src/backend/port/unix_latch.c
+++ b/src/backend/port/unix_latch.c
@@ -389,7 +389,7 @@ WaitLatchOrSocket(volatile Latch *latch, int wakeEvents, pgsocket sock,
/* socket is writable */
result |= WL_SOCKET_WRITEABLE;
}
- if ((wakeEvents & WL_SOCKET_WRITEABLE) &&
+ if ((wakeEvents & (WL_SOCKET_READABLE | WL_SOCKET_WRITEABLE)) &&
(pfds[1].revents & (POLLHUP | POLLERR | POLLNVAL)))
{
/* EOF/error condition */