1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-04 21:47:31 +03:00

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 12:18:07 +01:00
parent 3022916b4d
commit 7c75f34131

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;