Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbdbf347

Browse files
committed
Check status of epoll_ctl
1 parent5af31cd commitbdbf347

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
staticvoidMtmUnregisterSocket(intfd)
199199
{
200200
#ifUSE_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)

[8]ページ先頭

©2009-2025 Movatter.jp