-
Notifications
You must be signed in to change notification settings - Fork 8
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
boot-qemu.py: fix ctrl+c in gdb #87
Conversation
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.
Aside from the potential nit, looks good to me! Happy this works :)
be34e21
to
aba57fd
Compare
The linter isn't happy.
Looks like I might be able to use Should we disable W1509? |
aba57fd
to
942b39e
Compare
I'm not sure how to work around boot-qemu.py:768:17: W1509: Using preexec_fn keyword which may be unsafe in the presence of threads (subprocess-popen-preexec-fn) For python 3.10.8. I might be able to use process_group=1 in the subprocess.Popen constructor, but seems it's only available in python 3.11+. Link: ClangBuiltLinux/boot-utils#87
Yes, either in |
942b39e
to
838619a
Compare
You can drop the |
6f0cb07
to
838619a
Compare
Detach QEMU from the process group so that SIGINT isn't also delivered to it. Ignore SIGINT in python when running GDB subprocess. Link: https://stackoverflow.com/a/13737455 Link: https://stackoverflow.com/q/30925198 Fixes: #86
838619a
to
4beafc6
Compare
Detach QEMU from the process group so that SIGINT isn't also delivered to it.
Ignore SIGINT in python when running GDB subprocess.
Link: https://stackoverflow.com/a/13737455
Link: https://stackoverflow.com/q/30925198
Fixes: #86