[Devel] [PATCH 1/4] cr_tests/ptree1: remove dead code

Nathan Lynch ntl at pobox.com
Fri Feb 26 11:51:51 PST 2010


The return status of a background command (e.g. "ls &") is always 0.
Failure to restart can't be detected this way.

Signed-off-by: Nathan Lynch <ntl at pobox.com>
---
 process-tree/run-ptree1.sh |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/process-tree/run-ptree1.sh b/process-tree/run-ptree1.sh
index 23955d0..6d56a66 100755
--- a/process-tree/run-ptree1.sh
+++ b/process-tree/run-ptree1.sh
@@ -90,13 +90,6 @@ function restart_container
 	sleep 1
 
 	$cmdline < $CHECKPOINT_FILE >> $SCRIPT_LOG 2>&1 &
-	ret=$?
-
-	if [ $ret -ne 0 ]; then
-		$ECHO "***** FAIL: Restart of $pid failed"
-		ps aux |grep $TEST_CMD >> $SCRIPT_LOG
-		exit 1;
-	fi
 }
 
 function wait_for_checkpoint_ready()
-- 
1.6.0.6

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list