commit 052c9d240345b1e5b9ef11dbc3b9cb28978cdb89 from: Omar Polo date: Sat Mar 20 08:51:58 2021 UTC kill only $pid during regress testing before we did `pkill gmid', but that would influence also other instances of gmid! commit - 1d3eb470b0e5961d74cf202567a0e4c0b57f7f12 commit + 052c9d240345b1e5b9ef11dbc3b9cb28978cdb89 blob - 73ceb938eacae94502a59b1fc9cd4580a381980c blob + 80bf32c646b85696643ce2eb61ad024fb5edf538 --- regress/runtime +++ regress/runtime @@ -43,8 +43,7 @@ raw() { } run() { - # filter out logs for GET requests - (./../gmid -f -c reg.conf 2>&1 | grep -v GET) >&2 & + ./../gmid -f -c reg.conf & pid=$! # give gmid time to bind the port, otherwise we end up # executing gg when gmid isn't ready yet. @@ -61,13 +60,13 @@ check() { } restart() { - pkill -SIGHUP gmid + kill -HUP $pid sleep 1 } # quit gmid quit() { - pkill gmid || true + kill $pid || true wait || true } @@ -302,5 +301,3 @@ eq "$(head /)" "61 certificate not authorised" "Unexp echo OK GET / with invalid client certificate ggflags='' - -quit