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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy