Skip to content
Snippets Groups Projects
Unverified Commit c7f09c49 authored by Jason Mulligan's avatar Jason Mulligan Committed by GitHub
Browse files

Merge pull request #35 from andywer/patch-1

Make sure worker terminates when parent process terminates
parents dbf8ebb1 37424787
No related branches found
No related tags found
No related merge requests found
......@@ -66,3 +66,5 @@ process.once("message", obj => {
vm.createScript(exp).runInThisContext();
}
});
process.once("disconnect", () => process.exit());
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment