D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
IO
/
Filename :
pid-i.ri
back
Copy
U:RDoc::AnyMethod[iI"pid:ETI"IO#pid;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"KReturns the process ID of a child process associated with the stream, ;TI"Jwhich will have been set by IO#popen, or +nil+ if the stream was not ;TI"created by IO#popen:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"pipe = IO.popen("-") ;TI" if pipe ;TI": $stderr.puts "In parent, child pid is #{pipe.pid}" ;TI" else ;TI"- $stderr.puts "In child, pid is #{$$}" ;TI" end ;T:@format0o; ; [I"Output:;T@o;; [I"In child, pid is 26209 ;TI""In parent, child pid is 26209;T; 0: @fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I"pid -> integer or nil ;T0[ I"();T@ FI"IO;TcRDoc::NormalClass00