ps: No such process found!

Following the code:

let childWorker = cp.fork(`${__dirname}/../somefile`);

console.log(childWorker.pid);
// 12345

ps.lookup({ pid: childWorker.pid }, (err, resultList) => {
    console.log(resultList);
    // []
});

Why it didn’t work? I also randomly picked pid from ps -A and it still didn’t work.

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 34 (9 by maintainers)

Commits related to this issue

Most upvoted comments

Sorry guys! I’m back! I just rewrite table-parser with connected-domain, and I create a new branch of PS using the latest version of table-parser.

The parser problem should be fixed, but I need you to help me test with it, install it through github:

npm install https://github.com/neekey/ps.git#0.1.0

@yetzt your PR is included

@PaulTerryGameDev I haven’t got a chance to try win 10, can you open a new issue for it?

Or just use sindre sorhus’ package which works: https://github.com/sindresorhus/ps-list

I’m all for alternatives, but this code has been broken since I first tried it 6 months ago. You should make a note in the readme that it doesn’t work so people don’t keep wasting time, until if/when it is fixed.

Hi, guys, I’m sure this is caused by https://github.com/neekey/table-parser/pull/3 , I will fix it soon.

well, i sent @neekey an email, but so far no response. i implemented the functionality i needed myself in this module, feel free to use it.