Eric Armstrong wrote:
Charles Oliver Nutter wrote:
Eric Armstrong wrote:
Found this bug over the weekend.
I'll go file a ticket, but wanted to alert
you in case I get sidetracked on my way.
...
NoMethodError: undefined or inaccessible method `euid' for
Process:Module

If you have a suggestion for how to implement euid, we're all ears :)

Terminology (for myself and others laboring under a similar
weight of ignorance):
  euid = effective user id
  uid = user id

This Ruby bug says that some systems return uid for euid
http://rubyforge.org/tracker/index.php?func=detail&aid=2832&group_id=426&atid=1698

In MailFactory, I assume that the user ID is just being
used to make sure that my stuff stays separate from other
stuff. But in a single VM, there are no others to worry
about. So whatever unique number generator is being used
for temp files could probably be brought into play to
create a number.

The problem with just using a random number is that the UID could be used by something else that expects it to be valid, like calls to chown for a program installing files...so I'm not sure it would be safe to have it be some random value.

One possibility might be to spawn some small process at startup (like we do under Java 5 to get env vars) and see what the UID of that process is...but it's not very clean.

- Charlie

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to