@orkestrel/process 0.0.12 → 0.0.13
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.
|
@@ -580,7 +580,7 @@ function killProcess(child, signal) {
|
|
|
580
580
|
}
|
|
581
581
|
process.kill(-child.pid, signal);
|
|
582
582
|
} catch (error) {
|
|
583
|
-
if (error
|
|
583
|
+
if ((0, _orkestrel_contract.isError)(error) && "code" in error && error.code === "ESRCH") {
|
|
584
584
|
(0, _orkestrel_contract.holds)(() => child.kill(signal));
|
|
585
585
|
return;
|
|
586
586
|
}
|
|
@@ -1855,7 +1855,7 @@ var ProcessManager = class {
|
|
|
1855
1855
|
}
|
|
1856
1856
|
stop(target) {
|
|
1857
1857
|
if (target === void 0) return this.#stopAll();
|
|
1858
|
-
if (
|
|
1858
|
+
if ((0, _orkestrel_contract.isString)(target)) return this.#stopOne(target);
|
|
1859
1859
|
return this.#stopMany(target);
|
|
1860
1860
|
}
|
|
1861
1861
|
/**
|