-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
readline: only catch signals when using interact (#303)
When running `./hammerdbcli auto somescript.ctl` on Linux it was impossible to stop the benchmark by using Ctrl+C. This was pretty annoying since it is the most common way to stop programs in a shell on Linux. The reason was that the readline module was explicitly ignoring SIGINT. This makes sense for interactive mode, but when using `auto` there's no reason for this. This change makes sure the signal capturing code is only executed once `TclReadLine::interactive` is called.
- Loading branch information
Showing
1 changed file
with
29 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters