]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/exec-invoke: sigwait() returns positive errno and never EINTR
authorMike Yuan <me@yhndnzj.com>
Fri, 8 Dec 2023 18:22:04 +0000 (02:22 +0800)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 10 Dec 2023 08:44:44 +0000 (09:44 +0100)
commitc8f7c9a11dcc985fa1e2701b7b9aa2a129e194a5
tree1978341d6caac1b284ea8627fffcd2e387430968
parenta753d303039b51153100167857aeba03f20174be
core/exec-invoke: sigwait() returns positive errno and never EINTR

Follow-up for 5b6319dceedd81f3f1ce7eb70ea5defaef43bcec (gosh this is
ancient), and effectively reverts 3dead8d925ea9db1fbd65b702b6b807e49ddeacf.

sigwait() is documented to "suspend execution of the calling thread
until one of the signals specified in the signal set becomes pending".
And the only error it returns is EINVAL, when "set contains an invalid
signal number". Therefore, there's no need to run it in a loop or
to check for runtime error.
src/core/exec-invoke.c