mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 01:29:56 +00:00
fix: preserve child signal termination during CLI respawn (#144838)
Preserve actual Unix child termination signals through startup respawns so supervisors stop interrupted runtimes without entering watcher recovery. Keep explicit numeric exits and Windows termination behavior intact. Fixes #144200.
This commit is contained in:
parent
fe286b40e9
commit
53200287f8
7 changed files with 290 additions and 48 deletions
|
|
@ -151,6 +151,10 @@ export const runRespawnedChild = (command, args, env) => {
|
|||
child.once("exit", (code, signal) => {
|
||||
detach();
|
||||
if (signal) {
|
||||
if (process.platform !== "win32") {
|
||||
process.kill(process.pid, signal);
|
||||
return;
|
||||
}
|
||||
const forwardedSignalExitCode =
|
||||
!hardKillBackstopStarted && signal === firstForwardedSignal
|
||||
? signal === "SIGINT"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue