question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No such process found!

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:33 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
neekeycommented, Apr 26, 2016

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?

2reactions
jamietrecommented, Mar 15, 2016

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"No such process" when trying to kill a running python script
I got the following output: bioseq 24739 0.0 0.0 112884 1200 pts/1 R+ 13:20 0:00 grep --color=auto /script.py , and then typed: kill...
Read more >
linux - kill - no process found - Super User
killall expects a process name, e.g. killall signals which kills all such processes. Otherwise you should use the process id (which you ...
Read more >
ps finds process, kill doesn't [duplicate] - Unix Stack Exchange
I know a reboot will solve this (or a bit of patience even). But I'm just curious as to why there is such...
Read more >
Not able to kill process by "kill -9 <PID>" [duplicate] - Ask Ubuntu
But when I'm trying to kill it, by using sudo kill -9 10690 I receive: kill: (10690): There is no such process. process...
Read more >
warning: failed to kill 30449: No such process - Odoo
I have script that runs OpenERP server, but I seems to be not working on new server for some reason (I use same...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found