Commit cfd6c449 authored by Niels Möller's avatar Niels Möller

(spawn_lsh): Check if pid-file exists before trying to kill the

process.

Rev: src/testsuite/functions.sh:1.69
parent c1663f17
......@@ -191,7 +191,7 @@ spawn_lsh () {
--no-use-gateway \
--host-db-update /dev/null -z -p $PORT "$@" --write-pid -B $LOCALHOST > "$LSH_PIDFILE"
at_exit 'kill `cat $LSH_PIDFILE`'
at_exit '[ -f "$LSH_PIDFILE" ] && kill `cat $LSH_PIDFILE`'
}
exec_lshg () {
......
Markdown is supported
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