UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

10 lines (9 loc) • 366 B
import { workerData } from "node:worker_threads"; //#region src/infra/directory-watch-parent.worker.ts const caller = workerData?.caller; if (typeof caller !== "number") throw new Error("Directory watch parent monitor requires its caller PID"); setInterval(() => { if (process.ppid !== caller) process.kill(process.pid, "SIGKILL"); }, 1e3); //#endregion export {};