X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Fcompat-poll.c;h=cc280c7640ce4d011904da27fac43712ce1df272;hp=e4f1a3fed47c296c99feb980aa35d8615dcf667f;hb=a9b0dbc2405118ef5c69b7834f7cb4617b883cd1;hpb=d7c23421dddd4dcfbdfd329299816fa7d020eeb8 diff --git a/src/common/compat/compat-poll.c b/src/common/compat/compat-poll.c index e4f1a3fed..cc280c764 100644 --- a/src/common/compat/compat-poll.c +++ b/src/common/compat/compat-poll.c @@ -268,7 +268,9 @@ int compat_poll_wait(struct lttng_poll_event *events, int timeout) } } - ret = poll(events->wait.events, events->wait.nb_fd, timeout); + do { + ret = poll(events->wait.events, events->wait.nb_fd, timeout); + } while (ret == -1 && errno == EINTR); if (ret < 0) { /* At this point, every error is fatal */ PERROR("poll wait");