mirror of
https://github.com/better-auth/better-auth.git
synced 2026-07-18 19:27:48 -05:00
9 lines
307 B
TypeScript
9 lines
307 B
TypeScript
import { createRequire } from "node:module";
|
|
|
|
export const terminate = createRequire(import.meta.url)(
|
|
// use terminate instead of cp.kill,
|
|
// because cp.kill will not kill the child process of the child process
|
|
// to avoid the zombie process
|
|
"terminate/promise",
|
|
) as (pid: number) => Promise<void>;
|