This commit is contained in:
parent
b8494d8594
commit
1bce3b4642
|
@ -122,10 +122,13 @@ export function createProc(name, { cmd, args, cwd, env, stdin, log }) {
|
|||
await withTimeout(
|
||||
async () => {
|
||||
await treeKillAsync(childProcess.pid, signal);
|
||||
await this.getOutcomePromise();
|
||||
},
|
||||
STOP_TIMEOUT,
|
||||
async () => {
|
||||
log.warning(`Proc "${name}" was sent "${signal}" and didn't exit after ${STOP_TIMEOUT} ms, sending SIGKILL`);
|
||||
log.warning(
|
||||
`Proc "${name}" was sent "${signal}" and didn't emit the "exit" or "error" events after ${STOP_TIMEOUT} ms, sending SIGKILL`
|
||||
);
|
||||
await treeKillAsync(childProcess.pid, 'SIGKILL');
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue