Raised when the tree is malformed or there is a bug in the compiler.
A Process::Status
contains information about a system process.
Thread-local variable $?
is initially nil
. Some methods assign to it a Process::Status
object that represents a system process (either running or terminated):
`ruby -e "exit 99"` stat = $? # => #<Process::Status: pid 1262862 exit 99> stat.class # => Process::Status stat.to_i # => 25344 stat.stopped? # => false stat.exited? # => true stat.exitstatus # => 99
Placeholder for rusage
The Process::UID
module contains a collection of module functions which can be used to portably get, set, and switch the current process’s real, effective, and saved user IDs.
The Process::GID
module contains a collection of module functions which can be used to portably get, set, and switch the current process’s real, effective, and saved group IDs.
The Process::Sys
module contains UID
and GID
functions which provide direct bindings to the system calls of the same names instead of the more-portable versions of the same functionality found in the Process
, Process::UID
, and Process::GID
modules.
returns the socket type as an integer.
Addrinfo.tcp("localhost", 80).protocol == Socket::IPPROTO_TCP #=> true
Returns true
if the underlying file descriptor of ios will be closed at its finalization or at calling close
, otherwise false
.
Sets auto-close flag.
f = File.open(File::NULL) IO.for_fd(f.fileno).close f.gets # raises Errno::EBADF f = File.open(File::NULL) g = IO.for_fd(f.fileno) g.autoclose = false g.close f.gets # won't cause Errno::EBADF
Returns the ALPN protocol string that was finally selected by the server during the handshake.
Returns the protocol string that was finally selected by the client during the handshake.
Cleans up uninstalled files and invalid gem specifications
Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc.
Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc.
Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc.
Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc.
Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc.