mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-202129 .attach_pid files in the working dir
This commit is contained in:
@@ -276,7 +276,8 @@ public class DefaultJavaProgramRunner extends JavaPatchableProgramRunner {
|
||||
public void startNotified(@NotNull ProcessEvent event) {
|
||||
// 1 second delay to allow jvm to start correctly
|
||||
JobScheduler.getScheduler()
|
||||
.schedule(() -> myEnabled.set(JavaDebuggerAttachUtil.canAttach(OSProcessUtil.getProcessID(myProcessHandler.getProcess()))),
|
||||
.schedule(() -> myEnabled.set(!myProcessHandler.isProcessTerminating() && !myProcessHandler.isProcessTerminated() &&
|
||||
JavaDebuggerAttachUtil.canAttach(OSProcessUtil.getProcessID(myProcessHandler.getProcess()))),
|
||||
1, TimeUnit.SECONDS);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user