|
From: | Michael Berman |
Subject: | Re: [Discuss-gnuradio] KeyboardInterrupt not being caught in top_block |
Date: | Wed, 16 Jun 2010 10:57:09 -0700 |
Basically, I want to catch Ctrl+C after top_block.run()For exampletry:
my_top_block().run()
except KeyboardInterrupt:
print "Ctrl+C has been pressed. Exiting."
However, when Ctrl+C is pressed, the program exits straight away without executing the print function.
It seems that KeyboardInterrupt is not propagated to the main thread?
What am I doing wrong?
[Prev in Thread] | Current Thread | [Next in Thread] |