workers: unref all streams.
This commit is contained in:
parent
d3cfad0c64
commit
52bf0d420a
@ -537,7 +537,11 @@ Worker.prototype._initChildProcess = function _initChildProcess() {
|
||||
var options = { stdio: 'pipe', env: env };
|
||||
|
||||
this.child = cp.spawn(file, argv, options);
|
||||
|
||||
this.child.unref();
|
||||
this.child.stdin.unref();
|
||||
this.child.stdout.unref();
|
||||
this.child.stderr.unref();
|
||||
|
||||
this.child.on('error', function(err) {
|
||||
self.emit('error', err);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user