ahoward / systemu

univeral capture of stdout and stderr and handling of child process pid for windows, *nix, etc.
Other
126 stars 33 forks source link

Support for jRuby + Windows #43

Open keeguon opened 8 years ago

keeguon commented 8 years ago

I was deploying some Rails application on Windows and noticed that there was an issue regarding the PID detection in Java. I fixed it using JNA. The jars may not be required automatically so if you intend to use it and the java_import calls aren't working please do the following:

require 'jna.jar'
require 'jna-platform.jar'

I'm available regarding any questions on the matter.

P.S.: I know some of the commits are a bit light but I was hacking this rapidly and made some mistakes along the way.