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

Support os x #3

Open
rbabayoff opened this issue Oct 17, 2014 · 6 comments
Open

Support os x #3

rbabayoff opened this issue Oct 17, 2014 · 6 comments

Comments

@rbabayoff
Copy link

No description provided.

@kbjr
Copy link
Member

kbjr commented Oct 17, 2014

Does OSX not use the same ps utility as linux systems?

@kbjr
Copy link
Member

kbjr commented Oct 17, 2014

It seems like it does from this: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/ps.1.html

but I don't use mac, so I couldn't tell you.

@rbabayoff
Copy link
Author

Me neither. We have a bug report from a user using our npm package that depends on yours, on os x. I'll ask him to check this.

@emlama
Copy link

emlama commented Oct 18, 2014

OS X does have ps and it is very close but it does not support the --ppid argument that spacejam was using to filter bassed on parent pid. It's possible to support this functionality by adding a new query type and doing the filtering in the package.

@kbjr
Copy link
Member

kbjr commented Oct 19, 2014

I just pushed out a PPID query (facfbce), but I cannot test it at the moment as I am stuck on a windows box. Usage is pretty much the same as before:

ps.lookup({ ppid: 12345 }, function(err, procs) {
    // ...
});

@rbabayoff
Copy link
Author

@matthewforr can u test it on mac?

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

3 participants