diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-03-13 21:44:09 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-03-13 21:44:09 +0100 |
commit | 15b9738da39063ee118a22b48a2255c5b2769182 (patch) | |
tree | 755cc17202e6183920eb2c29d3fa017750ab1666 | |
parent | b43f552a8a23c0e405ab13a268bee12ada3b7841 (diff) | |
download | glibc-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-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/posix/waitid.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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 ) { |