RFR: JDK-8315026: java/lang/ProcessHandle/TreeTest.java fails intermittent on AIX in TreeTest.test5 [v4]

Roger Riggs rriggs at openjdk.org
Wed Oct 11 16:40:21 UTC 2023


On Wed, 11 Oct 2023 14:07:00 GMT, Joachim Kern <jkern at openjdk.org> wrote:

>> The callers in ProcessHandlerImpl depend on knowing the parent pid for each process. 
>> They are used to find the descendants of a process. When reading /proc that's necessary.
>
> @RogerRiggs Roger you are most familiar with os_getChildren(). How would you phrase the introducing comment of this function?

How about this in both the _unix.c and _aix.c files:

 * Return pids of active processes, and optionally parent pids and start times
 * for each process. 
 * For a specific non-zero pid, only the direct children are returned.
 * If the pid is zero, all active processes are returned.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/16051#discussion_r1355343311


More information about the core-libs-dev mailing list