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

What determines whether Process.kill is supported? #3244

Closed
lukehorvat opened this issue Aug 11, 2015 · 4 comments
Closed

What determines whether Process.kill is supported? #3244

lukehorvat opened this issue Aug 11, 2015 · 4 comments

Comments

@lukehorvat
Copy link

Hi, I'm attempting to run a Rails app on a Raspberry Pi as a WAR file (packaged via Warbler).

I get this error because I'm using Process.kill throughout my codebase:

file:/tmp/jruby6309588954101406081extract/gems/gems/jruby-jars-1.7.21/lib/jruby-core-1.7.21.jar!/jruby/kernel/jruby/process_manager.rb:28 warning: executable? does not in this environment and will return a dummy value
Exiting
ERROR: org.jruby.exceptions.RaiseException: (NotImplementedError) kill unsupported or native support failed to load

So what determines whether Process.kill is supported? Given that Raspbian is POSIX, I'd have thought it would just work?

@rtyler
Copy link

rtyler commented Aug 17, 2015

The RubyProcess class implements Process.kill and I believe that where this code is actually coming from is in the jnr-posix library, perhaps from here.

I would bet dollars to donuts that this is something to do with some native libraries not being present for your arm platform.

@lukehorvat
Copy link
Author

Yep, I think you're right. The call to loadNativePOSIX here must be returning null or throwing an exception.

Killing the process via backticks (i.e. kill #{pid}) works, but it's not ideal. Do you think I should raise an issue on jnr-posix?

@rtyler
Copy link

rtyler commented Aug 18, 2015

@lukehorvat it certainly can't hurt, if you've got a small ruby script that spawns and then attempts to kill the child process, that would also help I think

@enebo
Copy link
Member

enebo commented May 16, 2017

1.7.x is EOL and this will not get fixed. Marking WONTFIX

@enebo enebo closed this as completed May 16, 2017
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