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

Implement Process::setproctitle #3658

Closed
donv opened this Issue Feb 11, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@donv
Member

donv commented Feb 11, 2016

Trying to set process title gives an error:

# jruby -ve "Process.setproctitle('myapp')"
jruby 9.0.5.0 (2.2.3) 2016-01-26 7bee00d Java HotSpot(TM) 64-Bit Server VM 25.72-b15 on 1.8.0_72-b15 +jit [linux-amd64]
NoMethodError: undefined method `setproctitle' for Process:Module
  <top> at -e:1

It should either be implemented or NOOP with a warning.

@donv donv added this to the JRuby 9.1.0.0 milestone Feb 11, 2016

@headius

This comment has been minimized.

Show comment
Hide comment
@headius

headius Feb 13, 2016

Member

I'll mark it as not implemented. It's difficult to implement across platforms even from C, and from Java it's going to be nearly impossible.

Member

headius commented Feb 13, 2016

I'll mark it as not implemented. It's difficult to implement across platforms even from C, and from Java it's going to be nearly impossible.

@headius

This comment has been minimized.

Show comment
Hide comment
@headius

headius Feb 13, 2016

Member

It looks like MRI marks it as noop and doesn't report an error on platforms where it is not supported.

Member

headius commented Feb 13, 2016

It looks like MRI marks it as noop and doesn't report an error on platforms where it is not supported.

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