lwp: Fix unsafe update of LwpSigCaught
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 27 Dec 2020 07:07:24 +0000 (08:07 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 17 Jan 2021 20:24:28 +0000 (21:24 +0100)
commit5315db952d1b5ae4fd86c6ffd3e17de77e890025
treefe2c1923eebbcc1eae6b23eae4eba7da112aa92d
parent85ad19464871994852372ad5292cc0033fabdf40
lwp: Fix unsafe update of LwpSigCaught

lwpCatchAwaitedSig() is not reentrant.  lwpInitSigWait() attempts to
protect it by setting an appropriate signal mask, but screws up.  This
could conceivably lose signals.  Messed up when it got added in commit
7183516d9, v4.3.6.  Fix it.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/lwp/sig.c