nrpe doesn't handle non-normal exit

Klas Lindfors klas.lindfors at it.su.se
Thu Aug 30 10:50:24 CEST 2007


Hello,

After the waitpid() in nrpe WEXITSTATUS() is called without first
checking WIFEXITED() which leads to checks being reported ok if the
child for instance died on a signal. Attached patch adds a check to
WIFEXITED() before the WEXITSTATUS() check.

-- 
Klas Lindfors
Stockholm University
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nrpe-checkexited.patch
Type: text/x-patch
Size: 559 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20070830/ac5fb67c/attachment.bin>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
-------------- 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