]> sourceware.org Git - lvm2.git/commitdiff
test: Remove pidfile after killing the process
authorMarian Csontos <mcsontos@redhat.com>
Wed, 23 Mar 2016 11:18:08 +0000 (12:18 +0100)
committerMarian Csontos <mcsontos@redhat.com>
Wed, 23 Mar 2016 11:25:18 +0000 (12:25 +0100)
Though unlikely keeping files in place may result in random process
killed.

test/lib/aux.sh

index 4f5daaf56b42f46161270529e107a7a45d988ffd..276788054461258397c6dc3a5d4f4101e57ffe7a 100644 (file)
@@ -435,6 +435,7 @@ kill_sleep_kill_() {
        slow=$2
        if test -s $pidfile ; then
                pid=$(< $pidfile)
+               rm -f $pidfile
                kill -TERM $pid 2>/dev/null || return 0
                if test $slow -eq 0 ; then sleep .1 ; else sleep 1 ; fi
                kill -KILL $pid 2>/dev/null || true
This page took 0.042959 seconds and 5 git commands to generate.