X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Fcompat-epoll.c;h=77f5b922abcb7bc03c90ce8f574f5f4c94a9e6ed;hb=dbb5dfe6aa88caee1c2b40ad28716283927662f3;hp=460bc3b373b4ffb1c7d4f00f381ca49cac1c6890;hpb=990570edd474b304d4c935d82be6201d872025e4;p=lttng-tools.git diff --git a/src/common/compat/compat-epoll.c b/src/common/compat/compat-epoll.c index 460bc3b37..77f5b922a 100644 --- a/src/common/compat/compat-epoll.c +++ b/src/common/compat/compat-epoll.c @@ -23,7 +23,7 @@ #include #include -#include +#include #include #include "poll.h" @@ -93,6 +93,8 @@ int compat_epoll_add(struct lttng_poll_event *events, int fd, uint32_t req_event if (ret < 0) { switch (errno) { case EEXIST: + /* If exist, it's OK. */ + goto end; case ENOSPC: case EPERM: /* Print perror and goto end not failing. Show must go on. */