From: <do...@hy...> - 2008-09-18 18:47:39
|
Author: dougm Date: 2008-09-18 18:47:35 -0700 (Thu, 18 Sep 2008) New Revision: 11223 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=11223 Modified: branches/HQ_3_2/src/org/hyperic/hq/product/ExecutableProcess.java Log: [HHQ-2167] Change script based plugins to return AVAIL_DOWN rather than AVAIL_UNKNOWN on timeout (merged r11222 from trunk) Modified: branches/HQ_3_2/src/org/hyperic/hq/product/ExecutableProcess.java =================================================================== --- branches/HQ_3_2/src/org/hyperic/hq/product/ExecutableProcess.java 2008-09-19 01:46:03 UTC (rev 11222) +++ branches/HQ_3_2/src/org/hyperic/hq/product/ExecutableProcess.java 2008-09-19 01:47:35 UTC (rev 11223) @@ -212,6 +212,8 @@ if (wdog.killedProcess()) { setMessage("Timeout running " + "[" + exec.getCommandLineString() + "]"); + //on posix systems res == 143 (143 & 0x7f == SIGTERM) + res = 2; } setLogLevel(getLogLevel(res)); |