linux native, switch forks, always have a thread

Michael Snyder msnyder@specifix.com
Wed Apr 30 21:26:00 GMT 2008


On Wed, 2008-04-30 at 15:36 +0100, Pedro Alves wrote:
> I'd missed this case when I made linux native always have a thread.
> 
> It's not perfect in the sense that switching forks ("restart"/"fork",
> not follow-fork-mode) in multi-threaded apps doesn't handle
> multi-threading correctly yet, but that is an already existing
> problem.  We shall be getting back to that in a few weeks
> for multi-process support.

I think you'll find that fork is more-or-less undefined
in the context of a multi-threaded program, meaning that
it's not terribly urgent that we try to handle this case.





More information about the Gdb-patches mailing list