From 15b9738da39063ee118a22b48a2255c5b2769182 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 13 Mar 2016 21:44:09 +0100 Subject: [PATCH] Fix flag test in waitid compatibility layer * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of WUNTRACED. --- ChangeLog | 5 +++++ sysdeps/posix/waitid.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 99fe2c9ac8..4cc920d255 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 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 ) {