From 6d44eebd162411f80344c870e9c40a5ad588bb5f Mon Sep 17 00:00:00 2001 From: pablodgonzalez Date: Mon, 13 Apr 2015 16:27:53 -0300 Subject: [PATCH] avoid sending parent process parameters to forked process --- lib/scrypt-async.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/scrypt-async.js b/lib/scrypt-async.js index c9433fb..60db16d 100644 --- a/lib/scrypt-async.js +++ b/lib/scrypt-async.js @@ -8,7 +8,7 @@ var max_workers = cpu_count - 1; var pool = pool = new gp.Pool({ name: 'scrypt-worker' ,create: function(callback) { - var worker = fork(__dirname + '/scrypt-async-worker.js'); + var worker = fork(__dirname + '/scrypt-async-worker.js',{execArgv:[]}); worker.controlledExit = false; worker.on('exit',function(){ if (!worker.controlledExit) { @@ -61,4 +61,4 @@ module.exports = function scryptAsync(password, salt, options, callback) { worker.send(args); }); -}; \ No newline at end of file +};