* Use absolute pathname rather than a relative one
# Create a one-meg device
dd if=/dev/zero of=$tmpnam bs=1024 count=1024
-./nbd-server -C /dev/null -p ./nbd-server.pid 11111 $tmpnam &
+./nbd-server -C /dev/null -p `pwd`/nbd-server.pid 11111 $tmpnam &
# -p only works if nbd-server wasn't compiled with -DNOFORK or -DNODAEMON,
# which I sometimes do for testing and debugging.
PID=$!
kill $PID
fi
rm -f nbd-server.pid
+rm -f $tmpnam
exit $retval