X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fmain.c;h=47780e2660c59a22ccf3e32c88cf3dd7a98ef12d;hp=a3eef148810e3219d1978edeacfe1e2434d46690;hb=f921c78f991c899c741252949662cc2f589d8741;hpb=23f5f35da2bfb8e5162419bf84627714f920da2c diff --git a/src/bin/lttng-relayd/main.c b/src/bin/lttng-relayd/main.c index a3eef1488..47780e266 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -1818,7 +1818,9 @@ int relay_add_connection(int fd, struct lttng_poll_event *events, PERROR("Relay command zmalloc"); goto error; } - ret = read(fd, relay_connection, sizeof(struct relay_command)); + do { + ret = read(fd, relay_connection, sizeof(struct relay_command)); + } while (ret < 0 && errno == EINTR); if (ret < 0 || ret < sizeof(struct relay_command)) { PERROR("read relay cmd pipe"); goto error_read;