Commit ac047e1e authored by Dan Reading's avatar Dan Reading
Browse files

add progressive kill signals to timesys()

parent ae027bec
...@@ -130,7 +130,12 @@ timesys() { ...@@ -130,7 +130,12 @@ timesys() {
$command $args & $command $args &
command_pid=$! command_pid=$!
wait ${timer_pid} wait ${timer_pid}
kill -2 ${command_pid} siglist="2 15 9"
for i in $siglist ; do
running=$(ps -a | grep $command_pid | grep dd)
[[ "$running" ]] || break
kill -${i} ${command_pid}
done
} > $out 2>&1 } > $out 2>&1
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment