You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following method in the SqlLineSignalHandler was adapted in version 1.8.0 to cancel the statement dispatched to the driver upon receiving a CTRL-C signal. But it does not check what type of Terminal.Signal it receives, the WINCH for example is send when the controlling terminal of the process changes size.
public void handle(Terminal.Signal sig) {
try {
synchronized (this) {
if (dispatchCallback != null) {
dispatchCallback.forceKillSqlQuery();
dispatchCallback.setToCancel();
}
}
} catch (SQLException ex) {
throw new RuntimeException(ex);
}
}
A check should be added to ignore WINCH (and I think also INFO) signals, from org.jline.terminal.Terminal :
public static enum Signal {
INT,
QUIT,
TSTP,
CONT,
INFO,
WINCH;
The text was updated successfully, but these errors were encountered:
The following method in the SqlLineSignalHandler was adapted in version 1.8.0 to cancel the statement dispatched to the driver upon receiving a CTRL-C signal. But it does not check what type of Terminal.Signal it receives, the WINCH for example is send when the controlling terminal of the process changes size.
A check should be added to ignore WINCH (and I think also INFO) signals, from org.jline.terminal.Terminal :
The text was updated successfully, but these errors were encountered: