NUEVA BUSQUEDA DE DATOS SRI
This commit is contained in:
13
node_modules/pstree.remy/lib/index.js
generated
vendored
13
node_modules/pstree.remy/lib/index.js
generated
vendored
@@ -4,7 +4,7 @@ const utils = require('./utils');
|
||||
var hasPS = true;
|
||||
|
||||
// discover if the OS has `ps`, and therefore can use psTree
|
||||
exec('ps', error => {
|
||||
exec('ps', (error) => {
|
||||
module.exports.hasPS = hasPS = !error;
|
||||
});
|
||||
|
||||
@@ -20,9 +20,14 @@ module.exports = function main(pid, callback) {
|
||||
utils
|
||||
.getStat()
|
||||
.then(utils.tree)
|
||||
.then(tree => utils.pidsForTree(tree, pid))
|
||||
.then(res => callback(null, res.map(p => p.PID)))
|
||||
.catch(error => callback(error));
|
||||
.then((tree) => utils.pidsForTree(tree, pid))
|
||||
.then((res) =>
|
||||
callback(
|
||||
null,
|
||||
res.map((p) => p.PID)
|
||||
)
|
||||
)
|
||||
.catch((error) => callback(error));
|
||||
};
|
||||
|
||||
if (!module.parent) {
|
||||
|
||||
Reference in New Issue
Block a user