From c8ba61ac7bc6075f91ecc3a6460f24e5d227a55b Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 26 Aug 2016 00:05:35 +0300 Subject: [PATCH] closes #4791 --- .gitignore | 1 + src/password.js | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index a8ea9cb1eb..a83a93d01f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ npm-debug.log node_modules/ sftp-config.json config.json +jsconfig.json public/src/nodebb.min.js !src/views/config.json public/css/*.css diff --git a/src/password.js b/src/password.js index 13f8c11f72..20f4c79a95 100644 --- a/src/password.js +++ b/src/password.js @@ -12,9 +12,11 @@ }; function forkChild(message, callback) { - var child = fork('./bcrypt', { - silent: true - }); + var forkProcessParams = {}; + if(global.v8debug || parseInt(process.execArgv.indexOf('--debug'), 10) !== -1) { + forkProcessParams = {execArgv: ['--debug=' + (5859), '--nolazy']}; + } + var child = fork('./bcrypt', [], forkProcessParams); child.on('message', function(msg) { if (msg.err) {