From 59eca3fb84d988c184ebf868ef2ded10cf188f9b Mon Sep 17 00:00:00 2001 From: Sebastian Thomschke Date: Wed, 10 Jul 2024 16:52:28 +0200 Subject: [PATCH] fix: DSPProcess#getExitValue returns 0 if debug process still runs --- .../src/org/eclipse/lsp4e/debug/console/DSPProcess.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.lsp4e.debug/src/org/eclipse/lsp4e/debug/console/DSPProcess.java b/org.eclipse.lsp4e.debug/src/org/eclipse/lsp4e/debug/console/DSPProcess.java index 9d402f9d0..a90302de0 100644 --- a/org.eclipse.lsp4e.debug/src/org/eclipse/lsp4e/debug/console/DSPProcess.java +++ b/org.eclipse.lsp4e.debug/src/org/eclipse/lsp4e/debug/console/DSPProcess.java @@ -108,7 +108,7 @@ public String getAttribute(String key) { @Override public int getExitValue() throws DebugException { - if (handle.isPresent() && !handle.get().isAlive()) { + if (handle.isPresent() && handle.get().isAlive()) { throw new DebugException(Status.error(handle.get().pid() + " is still running")); } return 0;