On Wed, 22 Sep 2021 00:03:41 GMT, David Holmes <dhol...@openjdk.org> wrote:
>> I thought of that too, but notice the parens "()" around that /bin/sleep; >> that creates and extra level of forked processes and its harder to get that >> pid. There probably is a way to traverse the hierarchy but I'll keep it as >> is for now. > > Ah right. Begs the question why we need to use bash to execute sleep? Could > it be shell script instead of a binary? I think that's the author's prerogative; the test was written in 2010 to test conditions related to deeply inherited file descriptors. ------------- PR: https://git.openjdk.java.net/jdk/pull/5239