mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-04 19:31:44 +00:00
fix: preserve child process signal exit codes (#113685)
Co-authored-by: Peter Steinberger <steipete@golden-gate.local>
This commit is contained in:
committed by
GitHub
parent
687923189e
commit
89984a5082
@@ -22,6 +22,7 @@ import {
|
||||
getDebugProxyCaptureStore,
|
||||
} from "../proxy-capture/store.sqlite.js";
|
||||
import type { CaptureQueryPreset } from "../proxy-capture/types.js";
|
||||
import { resolveSubprocessExitCode } from "./subprocess-exit-code.js";
|
||||
|
||||
export async function runDebugProxyStartCommand(opts: { host?: string; port?: number }) {
|
||||
const settings = resolveDebugProxySettings();
|
||||
@@ -108,7 +109,7 @@ export async function runDebugProxyRunCommand(opts: {
|
||||
});
|
||||
child.once("error", reject);
|
||||
child.once("exit", (code, signal) => {
|
||||
process.exitCode = signal ? 1 : (code ?? 1);
|
||||
process.exitCode = resolveSubprocessExitCode(code, signal);
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user