-
Notifications
You must be signed in to change notification settings - Fork 892
feat: make it harder to skip graceful shutdown accidentally #1327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Spike Curtis <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov Report
@@ Coverage Diff @@
## main #1327 +/- ##
==========================================
+ Coverage 58.09% 66.45% +8.36%
==========================================
Files 282 282
Lines 18521 18522 +1
Branches 231 231
==========================================
+ Hits 10759 12309 +1550
+ Misses 6601 4949 -1652
- Partials 1161 1264 +103
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is awesome
Signed-off-by: Spike Curtis <[email protected]>
TIL about I realize this PR is merged but wanted to give a heads up about non-English keyboard users who'd have to hit Edit: Actually that combination doesn't even work (I just tested), you get |
* feat: make it harder to skip graceful shutdown accidentally Signed-off-by: Spike Curtis <[email protected]> * fixup: don't use unbuffered signal channel Signed-off-by: Spike Curtis <[email protected]>
Signed-off-by: Spike Curtis [email protected]
Makes it harder to accidentally skip graceful shutdown (which, in
--dev
mode includes cleaning up workspaces) by not allowing a second ctrl+C to kill the program. If you really want to kill graceful shutdown, you can use ctrl+\ (SIGQUIT).Subtasks
Fixes #631