Skip to content

Commit

Permalink
8274453: (sctp) com/sun/nio/sctp/SctpChannel/CloseDescriptors.java te…
Browse files Browse the repository at this point in the history
…st should be resilient to lsof warnings

Reviewed-by: dfuchs
  • Loading branch information
shipilev committed Sep 29, 2021
1 parent edd9d1c commit b1b6696
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private static void doIt(int port) throws Exception {
private static boolean check() throws Exception {
long myPid = ProcessHandle.current().pid();
ProcessBuilder pb = new ProcessBuilder(
"lsof", "-U", "-a", "-p", Long.toString(myPid));
"lsof", "-U", "-a", "-w", "-p", Long.toString(myPid));
pb.redirectErrorStream(true);
Process p = pb.start();
p.waitFor();
Expand Down

1 comment on commit b1b6696

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.