8379182: [test] java/lang/ProcessBuilder/PipelineLeaksFD.java fails Invoking lsof as a child process lead to races between parent and child that affected the open file descriptors.
Replace use of lsof with native code to test file descriptors that are pipes and show the inode number for debugging. Simple counts of pipe file descriptors are used to look for leaking fds. This implementation works on Mac and Linux. It may work Musl and Alpine (unconfirmed) and could remove the @requires restriction. ------------- Commit messages: - Replace use of ldof with native code to test file descriptors Changes: https://git.openjdk.org/jdk/pull/30223/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30223&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8379182 Stats: 310 lines in 3 files changed: 124 ins; 152 del; 34 mod Patch: https://git.openjdk.org/jdk/pull/30223.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30223/head:pull/30223 PR: https://git.openjdk.org/jdk/pull/30223
