Skip to content

Commit

Permalink
Merge pull request indexzero#7 from kerphi/master
Browse files Browse the repository at this point in the history
add the STAT and COMMAND fields
  • Loading branch information
indexzero committed Nov 7, 2014
2 parents e16d113 + 20f089e commit 43dc800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function childrenOfPid( pid, callback) {
pid = pid.toString()

es.connect(
spawn('ps', ['-A', '-o', 'ppid,pid']).stdout,
spawn('ps', ['-A', '-o', 'ppid,pid,stat,comm']).stdout,
es.split(),
es.map(function (line, cb) { //this could parse alot of unix command output
var columns = line.trim().split(/\s+/)
Expand Down

0 comments on commit 43dc800

Please sign in to comment.