This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Merge of nickrob-async-20060513 to mainline?
- From: Daniel Jacobowitz <drow at false dot org>
- To: Nick Roberts <nickrob at snap dot net dot nz>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 5 Oct 2006 23:24:20 -0400
- Subject: Re: Merge of nickrob-async-20060513 to mainline?
- References: <20060830023335.GA6377@nevyn.them.org> <17653.930.196634.143646@kahikatea.snap.net.nz> <20060830040113.GA8257@nevyn.them.org> <17654.994.815362.897653@kahikatea.snap.net.nz> <20060830214257.GA5397@nevyn.them.org> <17688.59135.24869.397517@kahikatea.snap.net.nz> <20060926123757.GA9879@nevyn.them.org> <17701.43098.583849.540224@kahikatea.snap.net.nz> <20061006012633.GA20001@nevyn.them.org> <17701.47901.123920.954707@kahikatea.snap.net.nz>
On Fri, Oct 06, 2006 at 03:10:37PM +1300, Nick Roberts wrote:
> Yes I think so. I don't quite follow the explanation of pselect in the manpage
> but I think you're saying that the signal handler for SIGCHLD will run even
> when GDB is already in select, and can get GDB's attention by writing to a
> pipe with a file descriptor that select is watching.
Exactly. Actually, getting the signal may also knock GDB out of the
select syscall; that depends on whether the "SA_RESTART" flag is used.
But you want to rely on the pipe, as there are fewer corner cases.
--
Daniel Jacobowitz
CodeSourcery