Skip to content

Commit 45d1818

Browse files
committed
Trace more information
1 parent 866f8d1 commit 45d1818

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
#ifdef USE_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+
char buf[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)