Skip to content

Commit 8f85ffb

Browse files
committed
Send SIGINT on stopping processes on Windows
Fixes #2832
1 parent 17a4ac2 commit 8f85ffb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/com/goide/runconfig/GoRunningState.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public GoRunningState(@NotNull ExecutionEnvironment env, @NotNull Module module,
4949
protected ProcessHandler startProcess() throws ExecutionException {
5050
GoExecutor executor = patchExecutor(createCommonExecutor());
5151
GeneralCommandLine commandLine = executor.withParameterString(myConfiguration.getParams()).createCommandLine();
52-
KillableColoredProcessHandler handler = new KillableColoredProcessHandler(commandLine);
52+
KillableColoredProcessHandler handler = new KillableColoredProcessHandler(commandLine, true);
5353
ProcessTerminatedListener.attach(handler);
5454
return handler;
5555
}

src/com/goide/util/GoExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public boolean execute() {
213213
try {
214214
commandLine = createCommandLine();
215215
GeneralCommandLine finalCommandLine = commandLine;
216-
myProcessHandler = new KillableColoredProcessHandler(finalCommandLine) {
216+
myProcessHandler = new KillableColoredProcessHandler(finalCommandLine, true) {
217217
@Override
218218
public void startNotify() {
219219
if (myShowGoEnvVariables) {

0 commit comments

Comments
 (0)