Skip to content

Commit 5a2a177

Browse files
committed
Experimenting with different kill situations
1 parent 4f9b40e commit 5a2a177

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

forked.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,4 @@ try {
3838
}
3939

4040
// Watch parent exit when it dies
41-
process.stdout.resume();
42-
process.stdout.on('end', () => process.exit());
41+
process.stdout.on('disconnect', () => process.exit());

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fork-require",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "Allows to \"require\" a file, while forking it into a child process.",
55
"author": "Ravi Gairola <mallox@pyxzl.net>",
66
"homepage": "https://github.com/mallocator/fork-require",

0 commit comments

Comments
 (0)