neekey / ps

A Node.js module for looking up running processes
MIT License
128 stars 41 forks source link

Not responding windows 10 #60

Open Ubspy opened 7 years ago

Ubspy commented 7 years ago

I've tested my code on linux, and it works great, but when I try to run the same code on windows 10, my application stops responding.

function findProcess(name, callback)
{
  ps.lookup(
  {
    command: name
  }, function(err, resultList)
  {
    if(err)
    {
      throw new Error(err);
    }

    callback(resultList.length > 0);

  });
}
neekey commented 7 years ago

Hi @Ubspy thanks for you feedback! I just downloaded the Windows 10 and tested myself, and it's working, can you get into the ps module directory, and npm run test to see the result first ?

avaer commented 6 years ago

Probably same thing as https://github.com/neekey/ps/issues/68. If the process list is large the synchronous parse kills it.