Skip to content

Commit 6570c2f

Browse files
steipetekrissding
andcommitted
docs(gateway): explain ESRCH signal race
Co-authored-by: 丁宇婷0668001435 <[email protected]>
1 parent 0c9d221 commit 6570c2f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/infra/gateway-processes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ export function signalVerifiedGatewayPidSync(pid: number, signal: "SIGTERM" | "S
4646
try {
4747
process.kill(pid, signal);
4848
} catch (err) {
49+
// The verified process can exit between argv inspection and signaling;
50+
// ESRCH already satisfies the requested stop or restart handoff.
4951
if ((err as NodeJS.ErrnoException).code !== "ESRCH") {
5052
throw err;
5153
}

0 commit comments

Comments
 (0)