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);
});
}
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.