Fix flag test in waitid compatibility layer

* sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
	WUNTRACED.
This commit is contained in:
Samuel Thibault 2016-03-13 21:44:09 +01:00
parent b43f552a8a
commit 15b9738da3
2 changed files with 6 additions and 1 deletions

View File

@ -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

View 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
)
{