More debug logging
Some checks failed
continuous-integration/appveyor/branch AppVeyor build failed

This commit is contained in:
TheThing 2023-10-31 14:09:26 +00:00
parent 71c82120d5
commit 7eeb25a436

View file

@ -43,10 +43,14 @@ function buildTree(allPids, spawnGetChildren, parentPid) {
ps.stdout.on('data', function(buf) {
data += buf.toString('ascii')
})
ps.stderr.on('data', function(buf) {
data += buf.toString('ascii')
})
return new Promise(function(res) {
ps.on('close', function(code) {
// Check if we got error code (usually means empty results)
console.log(data)
if (code !== 0) return res()
res(Promise.all(