Skip to content

Commit

Permalink
Merge pull request #16 from miz-take/prototype
Browse files Browse the repository at this point in the history
saved errno when epoll_ctl failed
  • Loading branch information
fabbione committed Nov 15, 2016
2 parents e66845c + d984eb7 commit f732cd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libknet/handle.c
Expand Up @@ -410,6 +410,7 @@ static int _init_epolls(knet_handle_t knet_h)

if (epoll_ctl(knet_h->dst_link_handler_epollfd,
EPOLL_CTL_ADD, knet_h->dstsockfd[0], &ev)) {
savederrno = errno;
log_err(knet_h, KNET_SUB_HANDLE, "Unable to add dstsockfd[0] to epoll pool: %s",
strerror(savederrno));
goto exit_fail;
Expand Down

0 comments on commit f732cd2

Please sign in to comment.