Hi Herbert On Mon, 7 Dec 2020 14:55:06 +1100 Herbert Xu <herb...@gondor.apana.org.au> wrote:
> Sorry, my bad. wait(1) with no arguments ignores the error status > of the child and always return zero. wait(1) specifically on a > child obviously returns the error status of that child. Since the > child was killed, we need to ignore that, so this works for me: > > wait $MONPID 2> /dev/null || : Hah, I basically came to the same result in https://salsa.debian.org/systemd-team/systemd/-/commit/85438481ca690f627c58d86aad6193f0ad5df21c I see that this has been addressed in dash now as well, so thanks for that!
signature.asc
Description: This is a digitally signed message part