nagios and freebsd threads issue : help please ...

Daniel Eischen deischen at freebsd.org
Mon Aug 22 15:36:26 GMT 2005


On Mon, 22 Aug 2005, M. Warner Losh wrote:

> So there's something in the list, I've gone through and done a call
> tree analysis to show the extensive and pervastive nature of the
> functions that nagios calls after fork.  I don't know if these are all
> problems or not, since I don't know if some of these functions might
> be called before the first thread is created with pthread_create.
> However, any that are called after that clearly have undefined
> behavior.

Note that we (David Xu and myself) took a different approach
to handling fork() in libpthread (and probably libthr) than
was done in libc_r.  We thought it better not to try and
reinitialize libpthread (and to some extent libc) because
it is messy and to expose non-portable applications.

-- 
DE



More information about the freebsd-hackers mailing list