@infersec/conduit 1.55.0 → 1.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +7 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -20305,16 +20305,17 @@ class ProcessManager extends EventEmitter {
|
|
|
20305
20305
|
if (!this.process) {
|
|
20306
20306
|
return;
|
|
20307
20307
|
}
|
|
20308
|
-
this.process
|
|
20308
|
+
const processRef = this.process;
|
|
20309
|
+
processRef.kill(signal);
|
|
20309
20310
|
return new Promise(resolve => {
|
|
20310
|
-
|
|
20311
|
+
let exited = false;
|
|
20311
20312
|
const forceKillTimer = setTimeout(() => {
|
|
20312
|
-
if (
|
|
20313
|
-
|
|
20313
|
+
if (!exited) {
|
|
20314
|
+
processRef.kill("SIGKILL");
|
|
20314
20315
|
}
|
|
20315
20316
|
}, 5000);
|
|
20316
|
-
|
|
20317
|
-
|
|
20317
|
+
processRef.once("exit", () => {
|
|
20318
|
+
exited = true;
|
|
20318
20319
|
clearTimeout(forceKillTimer);
|
|
20319
20320
|
resolve();
|
|
20320
20321
|
});
|