]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
nbd: kill the nbd.pid file on cleanup
authorJosef Bacik <jbacik@fb.com>
Wed, 16 May 2018 16:03:57 +0000 (12:03 -0400)
committerOmar Sandoval <osandov@fb.com>
Mon, 11 Jun 2018 20:18:21 +0000 (13:18 -0700)
Just in case, we don't want this to be left laying around.

Signed-off-by: Josef Bacik <jbacik@fb.com>
common/nbd

index 0c3424b1192a378ff0f976672ab2f09c84a5ed5e..e3e173909db4b85eae8467934508047763549b10 100644 (file)
@@ -60,5 +60,6 @@ EOF
 
 _stop_nbd_server() {
        kill -SIGTERM "$(cat "${TMPDIR}/nbd.pid")"
+       rm -f "${TMPDIR}/nbd.pid"
        rm -f "${TMPDIR}/export"
 }