get_uid


Description:

public int get_uid ()

Gets the user id for this.

Note that this is the real user-id, not the effective user-id.

NOTE: The UID may change over time, so the returned value may not match the current state of the underlying process; or the UID may have been set by UnixProcess.for_owner or set_uid, in which case it may not correspond to the actual UID of the referenced process at all (at any point in time).

Parameters:

this

A UnixProcess.

Returns:

The user id for this or -1 if unknown.