D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Process
/
Filename :
ppid-c.yaml
back
Copy
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Returns the process id of the parent of this process. Always returns 0 on NT. Not available on all platforms. - !ruby/struct:SM::Flow::VERB body: " puts "I am #{Process.pid}"\n Process.fork { puts "Dad is #{Process.ppid}" }\n" - !ruby/struct:SM::Flow::P body: <em>produces:</em> - !ruby/struct:SM::Flow::VERB body: " I am 27417\n Dad is 27417\n" full_name: Process::ppid is_singleton: true name: ppid params: | Process.ppid => fixnum visibility: public