Children of fork() Cannot pthread_create()?

Daniel Jacobowitz drow at false.org
Wed Jun 6 20:55:21 UTC 2007


On Wed, Jun 06, 2007 at 01:19:42PM -0700, David Daney wrote:
> Daniel Jacobowitz wrote:
> > On Wed, Jun 06, 2007 at 01:04:09PM -0700, David Daney wrote:
> >> Yes, pthread_create is not on the list of functions that can be called after 
> >> a fork (but before exec).
> >>
> >> The list of functions is near the end of this document:
> >>
> >> http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html
> > There's no restriction on what you can do after fork; you may be
> > thinking of vfork or no-MMU?
> From: http://www.opengroup.org/onlinepubs/009695399/functions/fork.html

Oops, I didn't see anything about it on the other page.  I know glibc
handles this "correctly".  Not sure about uClibc.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the uClibc mailing list