Results for: "to_proc"

Returns the number of the signal that caused the process to terminate or nil if the process was not terminated by an uncaught signal.

Returns true if the process exited normally (for example using an exit() call or finishing the program), false if not.

Returns the least significant eight bits of the return code of the process if it has exited; nil otherwise:

`exit 99`
$?.exitstatus # => 99

Returns:

Returns true if the process generated a coredump when it terminated, false if not.

Not available on all platforms.

Returns the (real) user ID of the current process.

Process.uid # => 1000

Returns the effective user ID for the current process.

Process.euid # => 501

Exchange real and effective user IDs and return the new effective user ID. Not available on all platforms.

[Process.uid, Process.euid]   #=> [0, 31]
Process::UID.re_exchange      #=> 0
[Process.uid, Process.euid]   #=> [31, 0]

Returns true if the real and effective user IDs of a process may be exchanged on the current platform.

Returns true if the current platform has saved user ID functionality.

Switch the effective and real user IDs of the current process. If a block is given, the user IDs will be switched back after the block is executed. Returns the new effective user ID if called without a block, and the return value of the block if one is given.

Returns the (real) group ID for the current process:

Process.gid # => 1000

Returns the effective group ID for the current process:

Process.egid # => 500

Not available on all platforms.

Exchange real and effective group IDs and return the new effective group ID. Not available on all platforms.

[Process.gid, Process.egid]   #=> [0, 33]
Process::GID.re_exchange      #=> 0
[Process.gid, Process.egid]   #=> [33, 0]

Returns true if the real and effective group IDs of a process may be exchanged on the current platform.

Returns true if the current platform has saved group ID functionality.

Switch the effective and real group IDs of the current process. If a block is given, the group IDs will be switched back after the block is executed. Returns the new effective group ID if called without a block, and the return value of the block if one is given.

Returns the (real) user ID of the current process.

Process.uid # => 1000

Returns the effective user ID for the current process.

Process.euid # => 501

Returns the (real) group ID for the current process:

Process.gid # => 1000

Returns the effective group ID for the current process:

Process.egid # => 500

Not available on all platforms.

Set the user ID of the current process to user. Not available on all platforms.

Set the group ID of the current process to group. Not available on all platforms.

Set the real user ID of the calling process to user. Not available on all platforms.

Set the real group ID of the calling process to group. Not available on all platforms.

Search took: 6ms  ·  Total Results: 2407