Possible bug in Nagios 2.12?

Thomas Guyot-Sionnest dermoth at aei.ca
Fri Apr 17 18:01:00 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andreas Ericsson wrote:
>> I'm going to sprinkle some yields where the sleeps are at and see if that helps, I'll keep you apprised.
>>
> 
> That's a very good idea (replacing sleep(1) with sched_yield()). Just
> make sure it keeps on working on AIX and Solaris and stuff like that,
> where Nagios compiles and runs just fine today.
> 
> I'd prefer if you did it with a helper function to make it easier to
> support various operating systems that need it without duplicating a
> lot of code.

Hey, sorry to jump in. I just read the thread; why don't you use
semaphores fix this issue? Just increase it when a check starts,
decrease when a check stops, and do a blocking wait for 0 instead of
doing an arbitrary sleep.

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJ6Ke86dZ+Kt5BchYRAiWfAKC8MhnAt2GIhbZWT2atl98yVJchQwCeMGMq
AaE8XsKEq8KyHWyvu/tl+aY=
=+hzu
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p




More information about the Developers mailing list