From f8ae4fe2c2d0e3bec751c4b70de61599ab94b924 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 28 Aug 2007 14:28:22 +0000 Subject: [PATCH] Added TODO. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22094 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/team.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/system/kernel/team.cpp b/src/system/kernel/team.cpp index 03ea49ea3f..bb1905d4cc 100644 --- a/src/system/kernel/team.cpp +++ b/src/system/kernel/team.cpp @@ -1443,6 +1443,12 @@ wait_for_child(pid_t child, uint32 flags, int32 *_reason, *_returnCode = foundEntry.status; *_reason = (foundEntry.signal << 16) | reason; + // TODO: From the Open Group Base Specs Issue 6: + // "... if SIGCHLD is blocked, if wait() or waitpid() return because + // the status of a child process is available, any pending SIGCHLD signal + // shall be cleared unless the status of another child process is + // available." + return foundEntry.thread; }