$$ (pid) returns non-pid (Ruby.hashCode) and it set in Main.java
----------------------------------------------------------------
Key: JRUBY-1284
URL: http://jira.codehaus.org/browse/JRUBY-1284
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.x
Environment: jruby/linux/jdk1.5
Reporter: skaar
{code}
class TestPid
def self.pid
p $$
end
end
TestPid.pid
{code}
prints identical number for repeated run if you stick it into a script. $$ is
also only set in Main:
(12:08:58) enebo: Which means I am not sure embedding clients will see a $$
(12:09:18) enebo: So I think this is likely a bug
(12:09:47) enebo: If we have and IPC between Ruby instances in lets say an App
server each one should have a $$ and it should be different
--
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