mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
Added a registry key for default graceful stopping of processes on Windows (PY-17252)
This commit is contained in:
@@ -75,7 +75,7 @@ public abstract class RestCommandLineState extends PythonCommandLineState {
|
||||
|
||||
protected ProcessHandler doCreateProcess(GeneralCommandLine commandLine) throws ExecutionException {
|
||||
final Runnable afterTask = getAfterTask();
|
||||
ProcessHandler processHandler = PythonProcessRunner.createProcess(commandLine);
|
||||
ProcessHandler processHandler = PythonProcessRunner.createProcess(commandLine, false);
|
||||
if (afterTask != null) {
|
||||
processHandler.addProcessListener(new ProcessAdapter() {
|
||||
public void processTerminated(ProcessEvent event) {
|
||||
|
||||
@@ -133,7 +133,7 @@ public class SphinxBaseCommand {
|
||||
|
||||
private ProcessHandler createProcess(Module module) throws ExecutionException {
|
||||
GeneralCommandLine commandLine = createCommandLine(module, Collections.<String>emptyList());
|
||||
ProcessHandler handler = PythonProcessRunner.createProcess(commandLine);
|
||||
ProcessHandler handler = PythonProcessRunner.createProcess(commandLine, false);
|
||||
ProcessTerminatedListener.attach(handler);
|
||||
return handler;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user