Skip to content

Commit 9c18d40

Browse files
knizhnikkelvich
authored andcommitted
Check status of epoll_ctl
1 parent 02cd914 commit 9c18d40

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arbiter.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,9 @@ static void MtmRegisterSocket(int fd, int node)
198198
static void MtmUnregisterSocket(int fd)
199199
{
200200
#if USE_EPOLL
201-
epoll_ctl(epollfd, EPOLL_CTL_DEL, fd, NULL);
201+
if (epoll_ctl(epollfd, EPOLL_CTL_DEL, fd, NULL) < 0) {
202+
elog(ERROR, "Arbiter failed to unregister socket from epoll set: %d", errno);
203+
}
202204
#else
203205
FD_CLR(fd, &inset);
204206
#endif

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