Skip to content

armgit / soju

Public Imported from GitHub
0

Play Windows games on Apple Silicon Macs. Free, open-source app that installs the official Battle.net, Steam, Epic and GOG launchers and lists your games in one library.

reaper: look for wineserver64 as well, matching the sweep

mikey92a1207ad64229
diff --git a/scripts/soju-reaper.sh b/scripts/soju-reaper.sh
index b11389eb73b..ba225dd889e 100755
--- a/scripts/soju-reaper.sh
+++ b/scripts/soju-reaper.sh
@@ -85,7 +85,7 @@ SERVER_DIR_REAL="$(cd /tmp 2>/dev/null && pwd -P)${SERVER_DIR#/tmp}"
server_alive() {
local pids out
[ -n "$SERVER_DIR" ] || return 0 # cannot tell, assume it is there
- pids=$(pgrep -x wineserver 2>/dev/null | tr '\n' ',' | sed 's/,$//')
+ pids=$( { pgrep -x wineserver; pgrep -x wineserver64; } 2>/dev/null | tr '\n' ',' | sed 's/,$//')
[ -n "$pids" ] || return 1
out=$(lsof -a -p "$pids" -d cwd -Fn 2>/dev/null)
[ -n "$out" ] || return 2