procband 0.3.4 → 0.3.5
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/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -751,6 +751,9 @@ function propagateFailure(exitCode) {
|
|
|
751
751
|
propagatedFailure = true;
|
|
752
752
|
if (process.exitCode == null || process.exitCode === 0) process.exitCode = exitCode;
|
|
753
753
|
for (const proc of liveProcesses) proc.kill();
|
|
754
|
+
setImmediate(() => {
|
|
755
|
+
process.exit(process.exitCode ?? exitCode);
|
|
756
|
+
});
|
|
754
757
|
}
|
|
755
758
|
//#endregion
|
|
756
759
|
export { supervise };
|
package/package.json
CHANGED