From 1ee54b0c2e244ddcba943208bb19ddb66ece2b60 Mon Sep 17 00:00:00 2001
From: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Thu, 24 Sep 2009 23:38:57 -0300
Subject: [PATCH 10/15] tests/stress: Put decoded status information when a process dies

The status without decoding is not very useful, so this patch puts the
decoded information to make it easier to read.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
---
 tests/stress/jiostress |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/tests/stress/jiostress b/tests/stress/jiostress
index 3a53f43..26b0f79 100755
--- a/tests/stress/jiostress
+++ b/tests/stress/jiostress
@@ -510,7 +510,10 @@ class Stresser:
 			# parent
 			id, status = os.waitpid(pid, 0)
 			if not os.WIFEXITED(status):
-				raise RuntimeError(status)
+				i = (status,
+					os.WIFSIGNALED(status),
+					os.WTERMSIG(status))
+				raise RuntimeError(i)
 
 			if os.WEXITSTATUS(status) != 0:
 				return False
-- 
1.6.2.2.646.gb214

