diff --git a/test/jdk/com/sun/nio/sctp/SctpChannel/CloseDescriptors.java b/test/jdk/com/sun/nio/sctp/SctpChannel/CloseDescriptors.java index 35e5bcbcc0949..c8ed8a881f677 100644 --- a/test/jdk/com/sun/nio/sctp/SctpChannel/CloseDescriptors.java +++ b/test/jdk/com/sun/nio/sctp/SctpChannel/CloseDescriptors.java @@ -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();