Skip to content

Commit

Permalink
Remove Ctrl+C handling, see #3456
Browse files Browse the repository at this point in the history
  • Loading branch information
wadoon committed Jul 20, 2024
1 parent b590ab9 commit b0e9c12
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
import org.antlr.v4.runtime.misc.ParseCancellationException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import sun.misc.Signal;

/**
* Implementation of {@link UserInterfaceControl} which controls the {@link MainWindow} with the
Expand All @@ -79,19 +78,6 @@ public WindowUserInterfaceControl(MainWindow mainWindow) {
completions.add(new BlockContractInternalCompletion(mainWindow));
completions.add(new BlockContractExternalCompletion(mainWindow));
completions.add(MergeRuleCompletion.INSTANCE);
try {
Signal.handle(new Signal("INT"), sig -> {
if (getMediator().isInAutoMode()) {
LOGGER.warn("Caught SIGINT, stopping automode...");
getMediator().getUI().getProofControl().stopAutoMode();
} else {
LOGGER.warn("Caught SIGINT, exiting...");
new ExitMainAction(mainWindow).exitMainWithoutInteraction();
}
});
} catch (Exception e) {
// the above is optional functionality and may not work on every OS
}
}

@Override
Expand Down

0 comments on commit b0e9c12

Please sign in to comment.