From: Samuel Thibault Date: Sun, 13 Mar 2016 20:44:09 +0000 (+0100) Subject: Fix flag test in waitid compatibility layer X-Git-Tag: glibc-2.24~489 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15b9738da39063ee118a22b48a2255c5b2769182;p=thirdparty%2Fglibc.git Fix flag test in waitid compatibility layer * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of WUNTRACED. --- diff --git a/ChangeLog b/ChangeLog index 99fe2c9ac8f..4cc920d2558 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-03-13 Samuel Thibault * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in diff --git a/sysdeps/posix/waitid.c b/sysdeps/posix/waitid.c index 14bf15e7352..392a37d95f6 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 ) {