lwp: Fix handling of sigismember() failure
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 27 Dec 2020 07:18:27 +0000 (08:18 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 23 Jan 2021 06:08:03 +0000 (07:08 +0100)
commitaae823507c366d5a52ebef5627d667faeb444d89
tree7018020cf265ed5630fea141ae422c7c605e5743
parentf15bb68b63e5f6ac5fba16bfb46ce122dd5d9cc9
lwp: Fix handling of sigismember() failure

sigismember() fails when passed an invalid or unsupported signal
number.  lwpInitSigWait() and lwpGetSig() treat sigismember() failure
like "is a member".  lwpInitSigWait() will then sigaction()
unsuccessfully.  Harmless.  lwpGetSig() returns the bad signal number
when it's greater than any caught signal's number.  The bad signal
number then gets returned to main(), which shuts down the server.

Fix by treating failure like "is not a member".

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