fix: write EINTR handling
[lttng-tools.git] / src / bin / lttng-sessiond / utils.c
index 07f29adedcebc0570c81bc153fe07769991b4e69..d503665a4fdb1149d68b00b79fcab14ed948bd4d 100644 (file)
@@ -31,7 +31,9 @@ int notify_thread_pipe(int wpipe)
 {
        int ret;
 
-       ret = write(wpipe, "!", 1);
+       do {
+               ret = write(wpipe, "!", 1);
+       } while (ret < 0 && errno == EINTR);
        if (ret < 0) {
                PERROR("write poll pipe");
        }
This page took 0.024677 seconds and 5 git commands to generate.