Nagios 2.9 and SIGHUP

Andrea Gabellini andrea.gabellini at telecomitalia.sm
Tue Apr 17 11:09:15 CEST 2007


Hi,

I just upgraded from 2.8 to 2.9 on Solaris 10 and gcc 4.1.2.

I noticed that if I send a reload (SIGHUP) to the 2.9, Nagios gets always SIGEXIT. With 2.8 Nagios
gets the right value.

I performed some tests, and finally moving the definition of sigs[x] from base/nagios.c to
base/utils.c solve this problem. I don't know why, and I don't know if it's a Solaris or GCC problem.

Attached there is the patch.

Andrea

-- 

---------------------------------------
A user friendly computer first requires a friendly user.
---------------------------------------
Ing. Andrea Gabellini
Email: andrea.gabellini at telecomitalia.sm
Tel: 0549 886111 (Italy)
Tel. +378 0549 886111 (International)

Telecom Italia San Marino S.p.A.
Strada degli Angariari, 3
47891 Rovereta
Republic of San Marino

http://www.omniway.sm  http://www.telecomitalia.sm
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nagios-2.9.patch.txt
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20070417/8edf63d6/attachment.txt>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list