Merge pull request #974 from Friesinator/patch-1

Add -w argument to the lsof command
This commit is contained in:
Ben Peddell 2018-08-13 07:35:15 +10:00 committed by GitHub
commit 47a668fff4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -835,7 +835,7 @@ function isTheServerUp(){
local ip="$(getMultiHome)" local ip="$(getMultiHome)"
result=1 result=1
if [ ! -x "$lsof" ]; then if [ ! -x "$lsof" ]; then
"$lsof" -i "${ip:+udp@}${ip}:$(getGamePort)" > /dev/null "$lsof" -w -i "${ip:+udp@}${ip}:$(getGamePort)" > /dev/null
result=$? result=$?
fi fi
if [ $result -ne 0 ]; then if [ $result -ne 0 ]; then