commit - 0d42ea7709c786cd9c405cf04395afd0091e580e
commit + e3f96d446dd88241a94de51b676fd118d47ab7d7
blob - 465def64605356d0c74b45a6348f7a1bcde4a8cd
blob + 8505914208e68538013bd0777d40d380ccbe2fc7
--- src/testsuite/getpid.sh
+++ src/testsuite/getpid.sh
*)
PGREP_FLAGS=""
esac
- exec /usr/bin/pgrep $PGREP_FLAGS -n -u "$LOGNAME" "$1"
+ exec /usr/bin/pgrep $PGREP_FLAGS -n -u "${LOGNAME:-$USER}" "$1"
fi
# pidof(1) could be a good alternative on elder Linux systems
blob - 599bf3ad7a5c678c4fb9fa56f126bca21485960c
blob + bc6eb7ea4a0d83f7968ae5844adaa2419b025d45
--- src/testsuite/start-server.sh
+++ src/testsuite/start-server.sh
# check weather getpid.sh returns valid PIDs. If not, don't start up the
# test-server, because we won't be able to kill it at the end of the test.
-./getpid.sh sh >/dev/null 2>&1
+./getpid.sh sh >/dev/null
if [ $? -ne 0 ]; then
echo " getpid.sh failed!"
exit 1