mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[devUtils/procRunner] wait for proc to exit so we fallback to SIGKILL (#20918)
This commit is contained in:
parent
fecbd11fd6
commit
5afd06b5e5
1 changed files with 2 additions and 1 deletions
|
@ -119,11 +119,12 @@ 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`
|
||||
`Proc "${name}" was sent "${signal}" 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