[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] KeyboardInterrupt not being caught in top_block
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] KeyboardInterrupt not being caught in top_block |
Date: |
Thu, 17 Jun 2010 09:56:53 -0700 |
User-agent: |
Mutt/1.5.20 (2009-08-17) |
On Thu, Jun 17, 2010 at 02:53:28PM +1000, Kyle Zhou wrote:
> Thanks Eric,
> I am using GNU Radio git depository installed a month ago.
> tried on Cygwin 1.7.5+WinXP and OSX 10.6.3+Macbook, both behaved the same.
> I'll try ubuntu tomorrow when I have access to another PC.
> Ctrl+C exits the program but not caught by except.
Kyle,
Are you trying to set a handler for a signal somewhere in your code?
If so, it's unlikely to work. In general signals and threads don't
play together well. A bit of googling will show you the mine field.
If you're trying to catch a std::exception, that should work fine.
Eric