]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/async: don't use WEXITED for waitpid() 28348/head
authorMike Yuan <me@yhndnzj.com>
Mon, 10 Jul 2023 17:46:29 +0000 (01:46 +0800)
committerMike Yuan <me@yhndnzj.com>
Tue, 11 Jul 2023 04:08:09 +0000 (12:08 +0800)
commit898f4da326051addf1ec17887e6b1737d0dab2ec
tree3c1ba510478a4781e1f949d11954bfc85ef922b2
parentf7b1d37c779ac0ae2314d25c8c88db409a425c9d
shared/async: don't use WEXITED for waitpid()

Follow-up for c26d7837bb08508c8d906d849dff8f1bc465063e

waitpid() doesn't support WEXITED and returns -1 (EINVAL),
which results in the intermediate close process not getting
reaped.

Fixes https://github.com/systemd/systemd/issues/26744#issuecomment-1628240782
src/shared/async.c