Commit a2607de
committed
fix: prevent fallback PID from killing external server in managed mode
When REMOTE_MANAGED is 'managed' but REMOTE_PID is empty (e.g. PID file
deleted or corrupted), the previous code fell back to DEFAULT_RUNTIME_PID
via ${REMOTE_PID:-$DEFAULT_RUNTIME_PID}. This could kill an externally
started server, causing wait_ready to fail and triggering an unnecessary
full relaunch cycle.
Fix: use REMOTE_PID directly without fallback so we only kill the process
we actually launched. If REMOTE_PID is empty, the -n guard skips the kill.1 parent c4be90c commit a2607de
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
549 | | - | |
| 549 | + | |
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
| |||
0 commit comments