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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux