fix: restore gateway watch boot path

This commit is contained in:
Peter Steinberger
2026-04-04 01:09:14 +01:00
parent fe72474153
commit 5bea93fd63
6 changed files with 93 additions and 8 deletions

View File

@@ -82,7 +82,7 @@ export async function runWatchMain(params = {}) {
env: childEnv,
stdio: "inherit",
});
watchProcess.on("exit", () => {
watchProcess.on("exit", (exitCode, exitSignal) => {
watchProcess = null;
if (shuttingDown) {
return;
@@ -90,7 +90,9 @@ export async function runWatchMain(params = {}) {
if (restartRequested) {
restartRequested = false;
startRunner();
return;
}
settle(exitSignal ? 1 : (exitCode ?? 1));
});
};