mirror of
https://github.com/denoland/deno.git
synced 2025-02-19 11:52:52 -05:00

Fixes https://github.com/denoland/deno/issues/25401. Fixes https://github.com/denoland/deno/issues/25841. Fixes https://github.com/denoland/deno/issues/25891.
15 lines
318 B
JavaScript
15 lines
318 B
JavaScript
const path = require("path");
|
|
const childProcess = require("node:child_process");
|
|
|
|
function childProcessFork(path) {
|
|
const child = childProcess.fork(path);
|
|
child.on("exit", () => {
|
|
console.log("Done.");
|
|
});
|
|
}
|
|
|
|
module.exports = {
|
|
run() {
|
|
childProcessFork(path.join(__dirname, "forked_path.js"));
|
|
}
|
|
};
|