Fix stupid omission in c4901a1e.
Reported-By: Jeff Janes Discussion: CAMkU=1zGxREwoyaCrp_CHadEB+dPgpVyKBysCJ+6xP9gCOvAuw@mail.gmail.com
This commit is contained in:
parent
07aed46a6b
commit
6eb2be15b5
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user