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
- fixes https://github.com/neekey/ps/issues/7 - first field always starts at 0 — committed to IstoraMandiri/table-parser by IstoraMandiri 9 years ago
- use patched `ps-node` pending https://github.com/neekey/ps/issues/7 — committed to IstoraMandiri/meteor-embark by IstoraMandiri 9 years ago
- Cast all PIDs as Strings Fixes [#7](https://github.com/neekey/ps/issues/7) — committed to yetzt/ps by yetzt 8 years ago
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:
@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.