MCPcopy Index your code
hub / github.com/Unitech/pm2 / filterBadProcess

Function filterBadProcess

lib/God/ActionMethods.js:887–899  ·  view source on GitHub ↗
(pro)

Source from the content-addressed store, hash-verified

885};
886
887function filterBadProcess(pro) {
888 if (pro.pm2_env.status !== cst.ONLINE_STATUS) {
889 return false;
890 }
891
892 if (pro.pm2_env.axm_options && pro.pm2_env.axm_options.pid) {
893 if (isNaN(pro.pm2_env.axm_options.pid)) {
894 return false;
895 }
896 }
897
898 return true;
899}
900
901function getProcessId(pro) {
902 var pid = pro.pid

Callers 1

ActionMethods.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…