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

Commit45d1818

Browse files
committed
Trace more information
1 parent866f8d1 commit45d1818

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎contrib/multimaster/sockhub/sockhub.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ static void close_socket(Shub* shub, int fd)
9595
close(fd);
9696
#ifdefUSE_EPOLL
9797
if (epoll_ctl(shub->epollfd,EPOLL_CTL_DEL,fd,NULL)<0) {
98-
shub->params->error_handler("Failed to add socket to epoll set",SHUB_RECOVERABLE_ERROR);
98+
charbuf[ERR_BUF_SIZE];
99+
sprintf(buf,"Failed to remove socket %d from epoll set",fd);
100+
shub->params->error_handler(buf,SHUB_RECOVERABLE_ERROR);
99101
}
100102
#else
101103
FD_CLR(fd,&shub->inset);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp