8274453: (sctp) com/sun/nio/sctp/SctpChannel/CloseDescriptors.java test should be resilient to lsof warnings

Reviewed-by: dfuchs
This commit is contained in:
Aleksey Shipilev 2021-09-29 16:57:40 +00:00
parent edd9d1c97b
commit b1b66965f1

View File

@ -120,7 +120,7 @@ public class CloseDescriptors {
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();