]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/stdio-bridge/stdio-bridge.c
stdio-bridge: don't be bothered with EINTR
[thirdparty/systemd.git] / src / stdio-bridge / stdio-bridge.c
index 3c5ba074c7de3fc4940063c9b1c0c8c11aa237f5..6e8f2bbe3cd0442d99191f7a78f89909775fa0f5 100644 (file)
@@ -242,8 +242,11 @@ static int run(int argc, char *argv[]) {
                 };
 
                 r = ppoll_usec(p, ELEMENTSOF(p), t);
-                if (r < 0)
+                if (r < 0) {
+                        if (ERRNO_IS_TRANSIENT(r)) /* don't be bothered by signals, i.e. EINTR */
+                                continue;
                         return log_error_errno(r, "ppoll() failed: %m");
+                }
         }
 
         return 0;