stdio-bridge: don't be bothered with EINTR

We handle signals via signal handlers, hence no need to be concerned
about EINTR.
This commit is contained in:
Lennart Poettering
2022-11-22 13:07:27 +01:00
parent 3022916b4d
commit 7c75f34131
+4 -1
View 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;