lwp: Drop inappropriate oops in lwpSigWait()
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 27 Dec 2020 07:03:25 +0000 (08:03 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 23 Jan 2021 06:08:03 +0000 (07:08 +0100)
lwpSigWait()'s contract specifies failure, which means oopsing is
wrong.  Harmless, as its only caller empth_wait_for_signal() oopses on
failure.  Drop it anyway.

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

index 190eca9ab3f434e1a3bc323eafad35c4ae3a60fa..eb53613146ebbeb3090af03e928fe4d1b6630c70 100644 (file)
@@ -27,7 +27,7 @@
  *  sig.c: Wait for signals
  *
  *  Known contributors to this file:
- *     Markus Armbruster, 2006-2007
+ *     Markus Armbruster, 2006-2020
  */
 
 #include <config.h>
@@ -117,7 +117,7 @@ lwpSigWait(sigset_t *set, int *sig)
 {
     int res;
 
-    if (CANT_HAPPEN(LwpSigWaiter))
+    if (LwpSigWaiter)
        return EBUSY;
     for (;;) {
        LwpSigCheck = 0;