Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6eb2be1

Browse files
committed
Fix stupid omission in c4901a1.
Reported-By: Jeff Janes Discussion: CAMkU=1zGxREwoyaCrp_CHadEB+dPgpVyKBysCJ+6xP9gCOvAuw@mail.gmail.com
1 parent 07aed46 commit 6eb2be1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/port/unix_latch.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ WaitLatchOrSocket(volatile Latch *latch, int wakeEvents, pgsocket sock,
389389
/* socket is writable */
390390
result |= WL_SOCKET_WRITEABLE;
391391
}
392-
if ((wakeEvents & WL_SOCKET_WRITEABLE) &&
392+
if ((wakeEvents & (WL_SOCKET_READABLE | WL_SOCKET_WRITEABLE)) &&
393393
(pfds[1].revents & (POLLHUP | POLLERR | POLLNVAL)))
394394
{
395395
/* EOF/error condition */

0 commit comments

Comments
 (0)