| β¦ | β¦ | @@ -208,4 +210,40 @@ export const make = ElectronApp.of({ | |
| 231 | + | "/bin/sh", | |
| 232 | + | [ | |
| 233 | + | "-c", | |
| 234 | + | 'while kill -0 "$0" 2>/dev/null; do sleep 0.1; done; exec "$@"', | |
π High electron/ElectronApp.ts:234
The Linux relauncher can fail to restart the app after the original Electron process exits: if its PID is reused, kill -0 "$0" succeeds for the unrelated process and the shell waits until that process exits. Check the target process identity rather than only the PID, or use a parent-death-aware launcher.
π€ Copy this AI Prompt to have your agent fix this:
| 1 | In file @apps/desktop/src/electron/ElectronApp.ts around line 234: |
| 2 | |
| 3 | The Linux relauncher can fail to restart the app after the original Electron process exits: if its PID is reused, `kill -0 "$0"` succeeds for the unrelated process and the shell waits until that process exits. Check the target process identity rather than only the PID, or use a parent-death-aware launcher. |