nagios and pthreads
Jeremie Le Hen
jeremie at le-hen.org
Wed Jul 13 12:47:02 GMT 2005
Christophe,
> Yes but if i understand, there is a bug in libc_r on FreeBSD ?
libc_r indeed has some kind of bug, I don't know.
Anyhow, you are using RELENG_5, so you should be using native threads
with either libpthread (libkse, M:N) or libthr (1:1).
I don't know what Nagios does just after fork(2), it would be worth to
check. It appears that fork(2)ing without exec(2)ing or _exit(2)ing
in a pthreaded program is not a "valid" behaviour, regarding to
SUSv3 [1]. I don't want to avoid admitting there is a problem in
FreeBSD threading library, I don't know how other OSes handle this,
but Nagios folks should really avoid doing what is explicitely
dissuaded in SUSv3.
For now, it doesn't resolve your problem unfortunately.
[1] http://www.opengroup.org/onlinepubs/009695399/functions/pthread_atfork.html
(look at the "RATIONALE" section)
--
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >
More information about the freebsd-hackers
mailing list