This is an automated email from the git hooks/post-receive script.
bernie.ogden pushed a commit to branch bernie/benchmarking in repository toolchain/abe.
The following commit(s) were added to refs/heads/bernie/benchmarking by this push: new d361e0b Write/read pid of sleeper in file d361e0b is described below
commit d361e0bbda067046450da8ca7907ae25bee7cec1 Author: Bernard Ogden bernie.ogden@linaro.org Date: Tue Aug 11 09:40:42 2015 +0200
Write/read pid of sleeper in file
Better than kill pidof approach - there may be other sleep processes running (for example, in the ping loop). If these sleep processes exit at an inconvenient moment, the kill command fails before killing the significant sleep.
Change-Id: Id187e614d5e91770ca25e0dcf6e833ec797a3ae6 --- config/bench/lava/host-session | 2 +- config/bench/lava/target-session | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/config/bench/lava/host-session b/config/bench/lava/host-session index 4e86d27..54f2833 100755 --- a/config/bench/lava/host-session +++ b/config/bench/lava/host-session @@ -51,7 +51,7 @@ fi #Non-parameters that we need to pass to Benchmark.job export ABE_DIR export post_build_cmd="rm ${HOME}/data/socket" -export post_target_cmd='kill \$(pidof sleep)' +export post_target_cmd='kill \$(cat /root/sleeper)' export maindir="/${HOME}/bench" mkdir "${maindir}" || exit 1 chmod 700 "${maindir}" || exit 1 diff --git a/config/bench/lava/target-session b/config/bench/lava/target-session index f042d82..8c73bb1 100755 --- a/config/bench/lava/target-session +++ b/config/bench/lava/target-session @@ -1,3 +1,5 @@ #!/bin/bash lava-network broadcast eth0 -sleep infinity +sleep infinity& +echo $! > /root/sleeper +wait $!