Content-Length: 260379 | pFad | http://github.com/postgrespro/postgres_cluster/commit/bdbf34737db9e67457126df25f7189ce0a3562e9

02 Check status of epoll_ctl · postgrespro/postgres_cluster@bdbf347 · GitHub
Skip to content

Commit bdbf347

Browse files
committed
Check status of epoll_ctl
1 parent 5af31cd commit bdbf347

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contrib/mmts/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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/bdbf34737db9e67457126df25f7189ce0a3562e9

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy