pid-returning methods should make a best effort to get a real pid
-----------------------------------------------------------------
Key: JRUBY-3437
URL: http://jira.codehaus.org/browse/JRUBY-3437
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules, Ruby 1.9
Affects Versions: JRuby 1.1.6
Reporter: Charles Oliver Nutter
Fix For: JRuby 1.2
For several core methods, like popen, we need a real subprocess pid. However,
since Java's process APIs do not provide a way to access pid, we usually just
return the Process object's hashcode. This of course, is totally useless, since
you can't do anything with that number.
On Sun/OpenJDK, we can at least dig out via reflection the actual pid and use
that. It would make those APIs much more useful, and under 1.9 mode make
Kernel#spawn work when used in tests.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email