Re: OT: linux clone() and errno

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 pthreads?

You just have to provide your own definition of errno.  It's not
terribly hard, and there's source in libpthread.  But If I were
you I'd just use pthreads, and thereby get compatibility with
existing libraries.

Andrew.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux