[non-stop] 08/10 linux native support
Michael Snyder
msnyder@specifix.com
Wed Jul 9 03:25:00 GMT 2008
On Mon, 2008-07-07 at 14:20 -0400, Daniel Jacobowitz wrote:
> On Wed, Jul 02, 2008 at 04:34:50AM +0100, Pedro Alves wrote:
> > @@ -337,7 +337,9 @@ linux_fork_killall (void)
> > {
> > pid = PIDGET (fp->ptid);
> > do {
> > - ptrace (PT_KILL, pid, 0, 0);
> > + /* Use SIGKILL instead of PTRACE_KILL because the former works even
> > + if the thread is running, while the later doesn't. */
> > + kill (pid, SIGKILL);
> > ret = waitpid (pid, &status, 0);
> > /* We might get a SIGCHLD instead of an exit status. This is
> > aggravated by the first kill above - a child has just
>
> This is OK but if anyone wants to make fork support handle
> multi-threaded programs someday we may need to expose kill_lwp.
Fork is undefined in a multi-threaded program.
More information about the Gdb-patches
mailing list