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

Failure to Build on OSX #1

Open
sirosen opened this issue May 25, 2013 · 2 comments
Open

Failure to Build on OSX #1

sirosen opened this issue May 25, 2013 · 2 comments

Comments

@sirosen
Copy link
Owner

sirosen commented May 25, 2013

So, right now we rely on sys/prctl.h
That means that the Hydra cannot run on OSX. I'd like us to fix this at some point, if we can.

@courageousillumination
Copy link
Collaborator

The only thing that we use from sys/prctl.h is the call to prctl(PR_SET_NAME, name);. This sets the process name so that "killall -9 hydra" won't kill the hydra. The next line strcpy(argv[0], name); sets the command line name which is listed in "ps aux". If we can find a way to set the process name on OS X we can easily remedy this problem.

@loosecannon93
Copy link
Collaborator

http://stackoverflow.com/questions/4217947/setting-process-name-on-mac-os-x-at-runtime

its apparently surprise surprise a huge pain in the ass.

you can basically change argv[0] and that will apparently work for ps, but
not activity monitor, which you can hack up to work or something

Thanks,
Cannon Matthews

On Sat, May 25, 2013 at 11:13 AM, courageousillumination <
notifications@github.com> wrote:

The only thing that we use from sys/prctl.h is the call to
prctl(PR_SET_NAME, name);. This sets the process name so that "killall -9
hydra" won't kill the hydra. The next line strcpy(argv[0], name); sets the
command line name which is listed in "ps aux". If we can find a way to set
the process name on OS X we can easily remedy this problem.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-18449575
.

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

No branches or pull requests

3 participants