boot-qemu.py: fix ctrl+c in gdb#87
Conversation
nathanchance
left a comment
There was a problem hiding this comment.
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