[windows] Process.gid and Process.egid not implemented
------------------------------------------------------

                 Key: JRUBY-4447
                 URL: http://jira.codehaus.org/browse/JRUBY-4447
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules, Intro, RubySpec, Windows
    Affects Versions: JRuby 1.4
         Environment: Windows
            Reporter: Vladimir Sizikov


{noformat}
jruby -e "p Process.gid"
-e:1: getgid unsupported on this platform (NotImplementedError)

jruby -e "p Process.egid"
-e:1: egid unsupported on this platform (NotImplementedError)
{noformat}

But

{noformat}
ruby -e "p Process.gid"
0

ruby -e "p Process.egid"
0
{noformat}

Looking at MRI source, it seems that these two are hardcoded to always return 0:

{code}
// Just pretend that everyone is a superuser. NT will let us know if
// we don't really have permission to do something.
//

#define ROOT_UID        0
#define ROOT_GID        0
{code}

We should do the same. Otherwise, there will be some rubyspec failures for 
FileTest and Process.

-- 
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


Reply via email to