Home > @rushstack/node-core-library > SubprocessTerminator > killProcessTree
SubprocessTerminator.killProcessTree() method
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Terminate the child process and all of its children.
Signature:
static killProcessTree(subprocess: child_process.ChildProcess, subprocessOptions: ISubprocessOptions): void;
Parameters
Parameter | Type | Description |
---|---|---|
subprocess | child_process.ChildProcess | |
subprocessOptions | ISubprocessOptions |
Returns:
void