Skip to content

Commit

Permalink
#2182 Get rid of annoying popups in Windows 10
Browse files Browse the repository at this point in the history
  • Loading branch information
toddwong committed Jan 12, 2018
1 parent a85cbad commit f6c60eb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/God.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ var async = require('async');
* Override cluster module configuration
*/
cluster.setupMaster({
windowsHide: true,
exec : path.resolve(path.dirname(module.filename), 'ProcessContainer.js')
});

Expand Down
1 change: 0 additions & 1 deletion lib/God/ForkMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ module.exports = function ForkMode(God) {
try {
var cspr = spawn(command, args, {
env : pm2_env,
detached : true,
windowsHide: true,
cwd : pm2_env.pm_cwd || process.cwd(),
stdio : ['pipe', 'pipe', 'pipe', 'ipc'] //Same as fork() in node core
Expand Down
2 changes: 1 addition & 1 deletion lib/TreeKill.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = function (pid, signal, callback) {

switch (process.platform) {
case 'win32':
exec('taskkill /pid ' + pid + ' /T /F', callback);
exec('taskkill /pid ' + pid + ' /T /F', { windowsHide: true }, callback);
break;
case 'darwin':
buildProcessTree(pid, tree, pidsToProcess, function (parentPid) {
Expand Down

0 comments on commit f6c60eb

Please sign in to comment.