From: Lennart Poettering Date: Tue, 22 Nov 2022 11:18:07 +0000 (+0100) Subject: stdio-bridge: don't be bothered with EINTR X-Git-Tag: v253-rc1~458^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c75f34131772781f690860de797d3e35fd0bed9;p=thirdparty%2Fsystemd.git stdio-bridge: don't be bothered with EINTR We handle signals via signal handlers, hence no need to be concerned about EINTR. --- diff --git a/src/stdio-bridge/stdio-bridge.c b/src/stdio-bridge/stdio-bridge.c index 3c5ba074c7d..6e8f2bbe3cd 100644 --- a/src/stdio-bridge/stdio-bridge.c +++ b/src/stdio-bridge/stdio-bridge.c @@ -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;