X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Fcompat-epoll.c;h=77f5b922abcb7bc03c90ce8f574f5f4c94a9e6ed;hb=a4b35e07e4711a49f764c3783aae22d7f0a33d65;hp=dc1a3b92689904ff4cbc8db49e3d5a3a353b0dcb;hpb=db7586006bc1a2b9057a2c108bf1e7d20fd6903f;p=lttng-tools.git diff --git a/src/common/compat/compat-epoll.c b/src/common/compat/compat-epoll.c index dc1a3b926..77f5b922a 100644 --- a/src/common/compat/compat-epoll.c +++ b/src/common/compat/compat-epoll.c @@ -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. */