is-running
is-running copied to clipboard
A process which isn't running is incorrectly detected as running on linux
Hi nisaacson,
Below test case fails on linux while it is passing on windows. I tried to find a solution but couldn't, maybe you can help.
//require spawn
var spawn = require('child_process').spawn
it('syncronous should return false when spawned process is not running', function (done) {
//try to spawn a process from a non-existent file
var proc = spawn('ghosts-do-not-exist')
//swallow the error to let the test pass
proc.on('error', function (error) {
});
var pid = proc.pid
var found = running(pid)
assert.ok(!found, 'pid is running when it should not be')
done()
})
imor
Y'all should probably close this if that last commit fixed the issue