Re: OT: linux clone() and errno

2010-09-07 Thread Tom Horsley
On Tue, 07 Sep 2010 14:33:51 +0100 T. Horsnell wrote: > If I use clone() to create a new thread in a process, the child thread has > the same errno as the parent. Is there any way round this, or do I have to > move to pthreads? Well, you could write some code as insanely complex as pthreads to pr

Re: OT: linux clone() and errno

2010-09-07 Thread Andrew Haley
On 09/07/2010 02:33 PM, T. Horsnell wrote: > Apologies for the OT query - if you know a better place to ask, please tell > me. > > If I use clone() to create a new thread in a process, the child thread has > the same errno as the parent. Is there any way round this, or do I have to > move to pthr