mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
Fix stupid omission in c4901a1e
.
Reported-By: Jeff Janes Discussion: CAMkU=1zGxREwoyaCrp_CHadEB+dPgpVyKBysCJ+6xP9gCOvAuw@mail.gmail.com
This commit is contained in:
@ -389,7 +389,7 @@ WaitLatchOrSocket(volatile Latch *latch, int wakeEvents, pgsocket sock,
|
|||||||
/* socket is writable */
|
/* socket is writable */
|
||||||
result |= WL_SOCKET_WRITEABLE;
|
result |= WL_SOCKET_WRITEABLE;
|
||||||
}
|
}
|
||||||
if ((wakeEvents & WL_SOCKET_WRITEABLE) &&
|
if ((wakeEvents & (WL_SOCKET_READABLE | WL_SOCKET_WRITEABLE)) &&
|
||||||
(pfds[1].revents & (POLLHUP | POLLERR | POLLNVAL)))
|
(pfds[1].revents & (POLLHUP | POLLERR | POLLNVAL)))
|
||||||
{
|
{
|
||||||
/* EOF/error condition */
|
/* EOF/error condition */
|
||||||
|
Reference in New Issue
Block a user