Doesn't start processes with name _old_* anymore hotfix

This commit is contained in:
Joni Shkurti 2014-10-07 18:00:56 +02:00
parent f0e130828a
commit ffaa90e964

View File

@ -155,7 +155,8 @@ God.handleExit = function handleExit(clu, exit_code) {
*/
God.executeApp = function executeApp(env, cb) {
// Check if this is and old temporary process
if (env['pm_id'].search('_old_') != -1)
if (env['pm_id'] != undefined &&
env['pm_id'].search('_old_') != -1)
return false;
var env_copy = Common.serialize(env);