Bugs item #10370, was opened at 2007-04-25 15:13
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=10370&group_id=426

Category: Core
Group: 1.8.6
Status: Open
Resolution: None
Priority: 3
Submitted By: Daniel Berger (djberg96)
Assigned to: Nobody (None)
Summary: Process::GID#eid= and Process::UID#eid= aliases are defined improperly

Initial Comment:
Hi,

The Process::GID#eid= and Process::UID#eid= aliases are not defined properly. They call rb_define_alias() on the module itself instead of its singleton.

This patch fixes it:

--- process.orig        Wed Apr 25 16:01:58 2007
+++ process.c   Wed Apr 25 16:05:24 2007
@@ -3669,8 +3669,8 @@
     rb_define_module_function(rb_mProcGID, "change_privilege", p_gid_change_privilege, 1);
     rb_define_module_function(rb_mProcUID, "grant_privilege", p_uid_grant_privilege, 1);
     rb_define_module_function(rb_mProcGID, "grant_privilege", p_gid_grant_privilege, 1);
-    rb_define_alias(rb_mProcUID, "eid=", "grant_privilege");
-    rb_define_alias(rb_mProcGID, "eid=", "grant_privilege");
+    rb_define_alias(rb_singleton_class(rb_mProcUID), "eid=", "grant_privilege");
+    rb_define_alias(rb_singleton_class(rb_mProcGID), "eid=", "grant_privilege");
     rb_define_module_function(rb_mProcUID, "re_exchange", p_uid_exchange, 0);
     rb_define_module_function(rb_mProcGID, "re_exchange", p_gid_exchange, 0);
     rb_define_module_function(rb_mProcUID, "re_exchangeable?", p_uid_exchangeable, 0);

Regards,

Dan

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=10370&group_id=426