xfs
[Top] [All Lists]

[PATCH] xfstests: kill in 131 needs to be quiet

To: xfs@xxxxxxxxxxx
Subject: [PATCH] xfstests: kill in 131 needs to be quiet
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Wed, 20 Jan 2010 16:58:46 +1100
If the kill fails because the processes have already terminates,
the output from kill (no such process) will cause the test to
fail. Make sure kill doesn't output anything.

Signed-off-by: Dave Chinner <david@xxxxxxxxxxxxx>
---
 131 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/131 b/131
index 9be0a14..783765e 100755
--- a/131
+++ b/131
@@ -34,8 +34,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 
 _cleanup()
 {
-    kill $locktest_pid2
-    kill $locktest_pid1
+    kill $locktest_pid2 2&>1 /dev/null
+    kill $locktest_pid1 2&>1 /dev/null
     _cleanup_testdir
 }
 
-- 
1.6.5

<Prev in Thread] Current Thread [Next in Thread>