Fix flag test in waitid compatibility layer
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 13 Mar 2016 20:44:09 +0000 (21:44 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 13 Mar 2016 20:44:09 +0000 (21:44 +0100)
* sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
WUNTRACED.

ChangeLog
sysdeps/posix/waitid.c

index 99fe2c9..4cc920d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
+
+       * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
+       WUNTRACED.
+
 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
 
        * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
index 14bf15e..392a37d 100644 (file)
@@ -80,7 +80,7 @@ OUR_WAITID (idtype_t idtype, id_t id, siginfo_t *infop, int options)
 #endif
 #ifdef WEXITED
       || ((options & (WEXITED|WSTOPPED|WCONTINUED))
-         != (WEXITED | (options & WUNTRACED)))
+         != (WEXITED | (options & WSTOPPED)))
 #endif
       )
     {