查看网站首页
查看网站首页
查看 sitemap.xml
✏️ 正在编辑: cdesc-Status.yaml
路径:
/opt/alt/ruby18/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
💾 保存文件
← 返回文件管理器