File.open('/proc/2/environ').read raises IOError instead of Errno::ESRCH on
some Linuxes
----------------------------------------------------------------------------------------
Key: JRUBY-5959
URL: https://jira.codehaus.org/browse/JRUBY-5959
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.6.3
Environment: Linux austin-build-local.corp.ssv.com 2.6.9-100.ELsmp #1
SMP Fri Feb 18 01:47:46 EST 2011 i686 i686 i386 GNU/Linux
Reporter: Austin Ziegler
Priority: Trivial
I'm trying to use sys-proctable (the pure Ruby version for Linux that reads
/proc) as root and it throws an IOError("No such process") instead of
Errno::ESRCH("No such process") when reading /proc/2/environ. It is "correct"
that you can't read /proc/2/environ in the system that I'm testing on ("sudo
cat /proc/2/environ" prints out "No such process"), but the nature of the
exception being thrown is different than that of Ruby 1.8.7. This may be
because Java doesn't know anything about ESRCH, but it's worth noting.
(sys-proctable wouldn't properly catch that in any case, because it's only
looking for Errno::EACCES in this case.)
--
This message is automatically generated by JIRA.
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