RFR: 8272600: (test) Use native "sleep" in Basic.java [v6]

Roger Riggs rriggs at openjdk.java.net
Wed Sep 22 13:58:07 UTC 2021


On Wed, 22 Sep 2021 00:03:41 GMT, David Holmes <dholmes at 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


More information about the core-libs-dev mailing list