This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: SIGINT & signal handler vs Linux kernel...
- From: Daniel Jacobowitz <drow at false dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb at sourceware dot org
- Date: Sun, 16 Aug 2009 20:53:57 -0400
- Subject: Re: SIGINT & signal handler vs Linux kernel...
- References: <20090813194700.GC6581@adacore.com>
On Thu, Aug 13, 2009 at 12:47:00PM -0700, Joel Brobecker wrote:
> Hello,
>
> We just noticed something really odd: When debugging a threaded program
> that has a SIGINT handler, pressing ctrl-c no longer interrupts that
> program (we attached the debugger to the process, not sure if this
> does make a difference or not). Instead, the program simply executes
> the signal handler.
What is the thread doing when you send Ctrl-C? Bug 9425 is specific
to the sigwait system call, I believe. If there's nothing special
about the threaded program, it's likely some other problem.
--
Daniel Jacobowitz
CodeSourcery