UNPKG

foreground-child

Version:

Run a child as if it's the foreground process. Give it stdio. Exit when it exits.

10 lines 486 B
import { ChildProcess } from 'child_process'; /** * Pass in a ChildProcess, and this will spawn a watchdog process that * will make sure it exits if the parent does, thus preventing any * dangling detached zombie processes. * * If the child ends before the parent, then the watchdog will terminate. */ export declare const watchdog: (child: ChildProcess) => import("child_process").ChildProcessByStdio<null, null, import("stream").Readable>; //# sourceMappingURL=watchdog.d.ts.map