Pathc: Nagios threads

Ethan Galstad nagios at nagios.org
Thu May 5 23:18:50 CEST 2005


Thanks!  This will be in CVS shortly.


On 2 May 2005 at 13:56, Andreas Ericsson wrote:

> Ahoy.
> 
> I've just noticed that Nagios doesn't define _REENTRANT or
> _THREAD_SAFE anywhere, although glibc and linuxthreads requires it to
> make functions thread safe. I'm not sure what difference it makes on
> some systems, but I've got a hunch it might mitigate the crash in
> service_result_worker_threads which seems to happen on SMP-enabled
> systems (where system calls can actually happen at the same time)
> using an older version of glibc (2.1.3) and its corresponding
> linuxthreads (also from 2000-something).
> 
> Apply the patch with
> patch -p1 < nagios-threadsafe.diff
> and please test this on other systems, as I'm not sure it works with
> Solaris and friends that have a history of broken system headers. BSD
> systems should have no problems with it.
> 
> Cheers.
> 
> -- 
> Andreas Ericsson                   andreas.ericsson at op5.se
> OP5 AB                             www.op5.se
> Lead Developer
> 



Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20




More information about the Developers mailing list