[sheepdog] [PATCH] tests: kill sheep with signal KILL

levin li levin108 at gmail.com
Wed Aug 22 07:08:37 CEST 2012


From: levin li <xingke.lwp at taobao.com>

In some case, we use pkill -f to kill a sheep node, and
the log process isn't killed immediately and becomes a
defunt process which take problems for the next start of
the same node.

Signed-off-by: levin li <xingke.lwp at taobao.com>
---
 tests/common.rc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/common.rc b/tests/common.rc
index 64182c6..8ca7dea 100644
--- a/tests/common.rc
+++ b/tests/common.rc
@@ -166,7 +166,7 @@ _start_sheep()
 
 _kill_sheep()
 {
-    pkill -f "$SHEEP $STORE/$1"
+    pkill -9 -f "$SHEEP $STORE/$1"
 }
 
 # make sure this script returns success
-- 
1.7.1




More information about the sheepdog mailing list