-
Notifications
You must be signed in to change notification settings - Fork 2
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
Clean exit on Ctrl+C #14
Conversation
Also add more tests
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.
As I was kinda saying earlier today, I think while this is the "correct" way to do this, it adds too much bloat to the code (plus looks foreign af to new programmers), so I would prefer we put a little more effort into the testing scripts rather than add this to our main code.
alright, reverts the context manager change for the sake of understanding code at first glance. I manually ran Apparently this didn't work on the PI today, but I didn't get to much to time to see why, so hold off on merging for now. |
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.
Looks good, just a couple small things
Co-authored-by: Harshil <[email protected]>
Confirmed working on the PI. |
Ignores
SIGINT
in the child processes, so Ctrl+C events are cleanly handled within them, making theKeyboardInterrupt
handling inmain.py
actually stop() the child processes properly.To be merged after testing on the PI.