about summary refs log tree commit diff
path: root/sysdeps/posix/waitid.c
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 /sysdeps/posix/waitid.c
parentb43f552a8a23c0e405ab13a268bee12ada3b7841 (diff)
downloadglibc-15b9738da39063ee118a22b48a2255c5b2769182.tar.gz
glibc-15b9738da39063ee118a22b48a2255c5b2769182.tar.xz
glibc-15b9738da39063ee118a22b48a2255c5b2769182.zip
Fix flag test in waitid compatibility layer
	* sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
	WUNTRACED.
Diffstat (limited to 'sysdeps/posix/waitid.c')
-rw-r--r--sysdeps/posix/waitid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/posix/waitid.c b/sysdeps/posix/waitid.c
index 14bf15e735..392a37d95f 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
       )
     {