mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
This commit is contained in:
parent
b8494d8594
commit
1bce3b4642
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue