diff options
author | Samuel O'Brien <sam.obrien@ni.com> | 2020-07-27 15:01:59 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-07-28 16:16:54 -0500 |
commit | c91cf54766c239a0a4d00777a208358bdbf71276 (patch) | |
tree | c7c6df646f727f1d1c8420116b4dd6a6b93097db /fpga/CONTRIBUTING.md | |
parent | 31a107747ac28c482ea33877750f37712f5c4e92 (diff) | |
download | uhd-c91cf54766c239a0a4d00777a208358bdbf71276.tar.gz uhd-c91cf54766c239a0a4d00777a208358bdbf71276.tar.bz2 uhd-c91cf54766c239a0a4d00777a208358bdbf71276.zip |
mpm: Fix more gevent errors on SIGTERM
Sometimes when running usrp_hwd.py in a terminal and then canceling it
with Ctrl+C, it prints a really large stacktrace into the terminal
resulting from an uncaught gevent BlockingSwitchOutError. This comes
from trying to block on Process#join inside a gevent signal handler.
This commit resolves this issue by simply triggering an event in the
signal handler which prompts a different non-daemon thread to join the
subprocesses and end the parent process.
Signed-off-by: Samuel O'Brien <sam.obrien@ni.com>
Diffstat (limited to 'fpga/CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions