From e3fb33c3f0fab6d7a4cdd6ee53931a1ada1d6ef5 Mon Sep 17 00:00:00 2001 From: Shane Tomlinson <stomlinson@mozilla.com> Date: Fri, 27 Jul 2012 11:11:30 +0100 Subject: [PATCH] Inserting @seanmonstar's comment into the code. --- scripts/run_locally.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/run_locally.js b/scripts/run_locally.js index 5dfa3e8ca..47107604a 100755 --- a/scripts/run_locally.js +++ b/scripts/run_locally.js @@ -89,6 +89,8 @@ if (!(SIGNALS_PROP in process.env)) { process.removeListener('SIGINT', signals_test); process.env[SIGNALS_PROP] = true; } catch (noSignals) { + // process.env converts all values set into strings, so setting this to + // false would get converted to the string false. Better to set nothing. } } @@ -154,5 +156,5 @@ if (process.env[SIGNALS_PROP]) { console.log('\nSIGINT recieved! trying to shut down gracefully...'); Object.keys(daemons).forEach(function (k) { daemons[k].kill('SIGINT'); }); }); - + } -- GitLab