We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 866f8d1 commit 45d1818Copy full SHA for 45d1818
contrib/multimaster/sockhub/sockhub.c
@@ -95,7 +95,9 @@ static void close_socket(Shub* shub, int fd)
95
close(fd);
96
#ifdef USE_EPOLL
97
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);
+ 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);
101
}
102
#else
103
FD_CLR(fd, &shub->inset);
0 commit comments