aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-03-13 21:44:09 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-03-13 21:44:09 +0100
commit15b9738da39063ee118a22b48a2255c5b2769182 (patch)
tree755cc17202e6183920eb2c29d3fa017750ab1666
parentb43f552a8a23c0e405ab13a268bee12ada3b7841 (diff)
downloadglibc-15b9738da39063ee118a22b48a2255c5b2769182.zip
glibc-15b9738da39063ee118a22b48a2255c5b2769182.tar.gz
glibc-15b9738da39063ee118a22b48a2255c5b2769182.tar.bz2
Fix flag test in waitid compatibility layer
* sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of WUNTRACED.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/posix/waitid.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 99fe2c9..4cc920d 100644
--- 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
diff --git a/sysdeps/posix/waitid.c b/sysdeps/posix/waitid.c
index 14bf15e..392a37d 100644
--- a/sysdeps/posix/waitid.c
+++ b/sysdeps/posix/waitid.c
@@ -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
)
{