This is a multi-part message in MIME format.
--------------040703060708090605060007
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hi,
would the attached diff be valid?
thanks.
--------------040703060708090605060007
Content-Type: text/x-patch;
name="childexit.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="childexit.diff"
--- utils.c 2009-01-26 10:49:49.000000000 +0200
+++ /tmp/utils.c 2009-02-12 18:19:25.000000000 +0200
@@ -531,10 +531,10 @@
if(status==-1)
result=STATE_CRITICAL;
else{
- if(WEXITSTATUS(status)==0 && WIFSIGNALED(status))
- result=128+WTERMSIG(status);
- result=WEXITSTATUS(status);
- }
+ if(WIFEXITED(status))
+ result=WEXITSTATUS(status);
+ else
+ result=STATE_UNKNOWN;
}
/* close pipe for writing */
--------------040703060708090605060007--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]