summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
06fbef5)
* Use absolute pathname rather than a relative one
# Create a one-meg device
dd if=/dev/zero of=$tmpnam bs=1024 count=1024
# 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=$!
# -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
kill $PID
fi
rm -f nbd-server.pid