]> git.pond.sub.org Git - empserver/commitdiff
lwp: Fix signal wait screwup for multiple different signals
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 27 Dec 2020 08:30:00 +0000 (09:30 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 23 Jan 2021 06:08:03 +0000 (07:08 +0100)
lwpSigWait() clears LwpSigCheck even when signals remain in
LwpSigCaught.  The next empth_wait_for_signal() will then wait until
another one gets caught.  Broken in commit fe2de3d74, v4.3.10.

Fix by clearing it only when LwpSigCaught is empty.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>

No differences found