Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Process
/
//opt/alt/ruby21/share/ri/2.1.0/system/Process/wait2-c.ri
U:RDoc::AnyMethod[iI" wait2:ETI"Process::wait2;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"GWaits for a child process to exit (see Process::waitpid for exact ;TI"Gsemantics) and returns an array containing the process id and the ;TI"Aexit status (a <code>Process::Status</code> object) of that ;TI"Echild. Raises a SystemCallError if there are no child processes.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"*Process.fork { exit 99 } #=> 27437 ;TI"!pid, status = Process.wait2 ;TI"*pid #=> 27437 ;TI"&status.exitstatus #=> 99;T:@format0: @fileI"process.c;T:0@omit_headings_from_table_of_contents_below0I"9Process.wait2(pid=-1, flags=0) -> [pid, status];T0[ I"(*args);T@FI"Process;TcRDoc::NormalModule00