aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Iurt/Process.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Iurt/Process.pm b/lib/Iurt/Process.pm
index 9dfd1ad..52b0b79 100644
--- a/lib/Iurt/Process.pm
+++ b/lib/Iurt/Process.pm
@@ -106,7 +106,7 @@ sub fork_to_monitor {
kill 14, "-$parent_pid";
exit();
}
- if ($stat[9] + $opt{stalled_timeout} < time()) {
+ if ($stat[9] && $stat[9] + $opt{stalled_timeout} < time()) {
# If nothing was written to the logfile for more than stalled_timeout, check if the system seems busy
if ((getload())[1] < 0.5) {
plog('ERROR', "Killing current command because it seems blocked");