fix(ci): stabilize runners
This commit is contained in:
@@ -3,6 +3,10 @@ import { spawn } from "node:child_process";
|
||||
const DEFAULT_LAUNCHD_LABEL = "com.steipete.clawdis";
|
||||
|
||||
export function triggerClawdisRestart(): void {
|
||||
if (process.platform !== "darwin") {
|
||||
return;
|
||||
}
|
||||
|
||||
const label = process.env.CLAWDIS_LAUNCHD_LABEL || DEFAULT_LAUNCHD_LABEL;
|
||||
const uid =
|
||||
typeof process.getuid === "function" ? process.getuid() : undefined;
|
||||
@@ -11,5 +15,8 @@ export function triggerClawdisRestart(): void {
|
||||
detached: true,
|
||||
stdio: "ignore",
|
||||
});
|
||||
child.on("error", () => {
|
||||
// Best-effort restart; ignore failures (e.g. missing launchctl, invalid label).
|
||||
});
|
||||
child.unref();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user