mirror of
https://github.com/denoland/deno.git
synced 2024-12-20 22:34:46 -05:00
fbddd5a2eb
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"));
|
|
}
|
|
};
|