Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo code not right on MAC #41

Open
AceMood opened this issue Nov 27, 2019 · 2 comments
Open

demo code not right on MAC #41

AceMood opened this issue Nov 27, 2019 · 2 comments

Comments

@AceMood
Copy link

AceMood commented Nov 27, 2019

The demo code in README.md
`var cp = require('child_process'),
psTree = require('ps-tree');

var child = cp.exec("node -e 'while (true);'", function () { /.../ });

psTree(child.pid, function (err, children) {
cp.spawn('kill', ['-9'].concat(children.map(function (p) { return p.PID })));
});`

seems have no children in psTree callback on MAC platform. Node version is 10.16.3 LTS

@AceMood
Copy link
Author

AceMood commented Nov 28, 2019

@indexzero

@nelsonic
Copy link
Collaborator

@AceMood could you please add more detail on exactly what version of Mac OS you are using? 💻
We all use Mac for our dev work and have never had an issue with running ps-tree on our machines ... 💭

Could be worth adding a Mac/OSX test on CI to get 3rd party confirmation that this is working. 💡

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants