Merge of nickrob-async-20060513 to mainline?
Daniel Jacobowitz
drow@false.org
Fri Oct 6 03:24:00 GMT 2006
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
More information about the Gdb
mailing list