-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to how signals are caught and handled in
awatch
(#136)
* Don't use a signal handler, but catch CancelledError and set the stop event there * The exit_on_signal is now also no longer needed * Better also handle KeyboardInterrupt the same way * Raise KeyboardInterrupt when asked for * split 'stop' and 'signal' case; log warning to match test expectation * no need to mock open_signal_receiver anymore; set exit_code to 'stop', which should be the expected one here * removed unused import * tweaks and docs changes for signal handling * fix coverage * fix test_watch_dont_raise_interrupt Co-authored-by: Samuel Colvin <s@muelcolvin.com>
- Loading branch information
1 parent
86762c9
commit 7ab3cb9
Showing
5 changed files
with
96 additions
and
53 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
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
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
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
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