Current Path : /usr/local/share/ri/1.8/system/Process/Status/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/local/share/ri/1.8/system/Process/Status/cdesc-Status.yaml |
--- !ruby/object:RI::ClassDescription attributes: [] class_methods: [] comment: - !ruby/struct:SM::Flow::P body: <tt>Process::Status</tt> encapsulates the information on the status of a running or terminated system process. The built-in variable <tt>$?</tt> is either <tt>nil</tt> or a <tt>Process::Status</tt> object. - !ruby/struct:SM::Flow::VERB body: " fork { exit 99 } #=> 26557\n Process.wait #=> 26557\n $?.class #=> Process::Status\n $?.to_i #=> 25344\n $? >> 8 #=> 99\n $?.stopped? #=> false\n $?.exited? #=> true\n $?.exitstatus #=> 99\n" - !ruby/struct:SM::Flow::P body: Posix systems record information on processes using a 16-bit integer. The lower bits record the process status (stopped, exited, signaled) and the upper bits possibly contain additional information (for example the program's return code in the case of exited processes). Pre Ruby 1.8, these bits were exposed directly to the Ruby program. Ruby now encapsulates these in a <tt>Process::Status</tt> object. To maximize compatibility, however, these objects retain a bit-oriented interface. In the descriptions that follow, when we talk about the integer value of <em>stat</em>, we're referring to this 16 bit value. constants: [] full_name: Process::Status includes: [] instance_methods: - !ruby/object:RI::MethodSummary name: "&" - !ruby/object:RI::MethodSummary name: == - !ruby/object:RI::MethodSummary name: ">>" - !ruby/object:RI::MethodSummary name: coredump? - !ruby/object:RI::MethodSummary name: exited? - !ruby/object:RI::MethodSummary name: exitstatus - !ruby/object:RI::MethodSummary name: inspect - !ruby/object:RI::MethodSummary name: pid - !ruby/object:RI::MethodSummary name: signaled? - !ruby/object:RI::MethodSummary name: stopped? - !ruby/object:RI::MethodSummary name: stopsig - !ruby/object:RI::MethodSummary name: success? - !ruby/object:RI::MethodSummary name: termsig - !ruby/object:RI::MethodSummary name: to_i - !ruby/object:RI::MethodSummary name: to_int - !ruby/object:RI::MethodSummary name: to_s name: Status superclass: Object