Fix race condition in reload.sh causing -600 error

Add delay after pkill to give Launch Services time to release the
old process handle before opening the new app.
This commit is contained in:
Lawrence Chen 2026-02-03 15:30:23 -08:00
parent 7d951a7f73
commit 7bae1216ff

View file

@ -204,6 +204,7 @@ if [[ -n "$TAG" && "$APP_NAME" != "$SEARCH_APP_NAME" ]]; then
fi
pkill -f "${APP_PATH}/Contents/MacOS/" || true
sleep 0.3
CMUXD_SRC="$PWD/cmuxd/zig-out/bin/cmuxd"
if [[ -d "$PWD/cmuxd" ]]; then
(cd "$PWD/cmuxd" && zig build -Doptimize=ReleaseFast)