Permalink
Browse files

Send SIGINT on stopping processes on Windows

Fixes #2832
  • Loading branch information...
1 parent 17a4ac2 commit 8f85ffba17f289e09b01f2a8e890a78bea990770 @zolotov zolotov committed Nov 23, 2016
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/com/goide/runconfig/GoRunningState.java
  2. +1 −1 src/com/goide/util/GoExecutor.java
@@ -49,7 +49,7 @@ public GoRunningState(@NotNull ExecutionEnvironment env, @NotNull Module module,
protected ProcessHandler startProcess() throws ExecutionException {
GoExecutor executor = patchExecutor(createCommonExecutor());
GeneralCommandLine commandLine = executor.withParameterString(myConfiguration.getParams()).createCommandLine();
- KillableColoredProcessHandler handler = new KillableColoredProcessHandler(commandLine);
+ KillableColoredProcessHandler handler = new KillableColoredProcessHandler(commandLine, true);
ProcessTerminatedListener.attach(handler);
return handler;
}
@@ -213,7 +213,7 @@ public boolean execute() {
try {
commandLine = createCommandLine();
GeneralCommandLine finalCommandLine = commandLine;
- myProcessHandler = new KillableColoredProcessHandler(finalCommandLine) {
+ myProcessHandler = new KillableColoredProcessHandler(finalCommandLine, true) {
@Override
public void startNotify() {
if (myShowGoEnvVariables) {

0 comments on commit 8f85ffb

Please sign in to comment.