yibn2008/find-process

Can't find child processes by name on win32

464bb26bac556e85b6fd6b524347b103 opened this issue · 3 comments

It looks like currently if you use child_process.spawn on win32 with detached:false, find-process is unable to find the process by name when search from within the same parent process that spawned the child.

I didn't test to see if this is a broader issue but the specified case should reproduce

I have same problem, and I think find_process by name always search in cmd

find('name', 'svchost')
  .then(function (list) {
    console.log(list);
  }, function (err) {
    console.log(err.stack || err);
  })

image
but not these
image

fixed, try latest version