U:RDoc::AnyMethod[iI"watch_process:ETI" EventMachine::watch_process;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"iEventMachine's process monitoring API. On Mac OS X and *BSD this method is implemented using kqueue.;To:RDoc::Markup::BlankLine o;
;	[I"@example;T@o:RDoc::Markup::Verbatim;	[I"module ProcessWatcher
;TI"  def process_exited
;TI"&    put 'the forked child died!'
;TI"  end
;TI"	end
;TI"
;TI"pid = fork{ sleep }
;TI"
;TI"EventMachine.run {
;TI"7  EventMachine.watch_process(pid, ProcessWatcher)
;TI">  EventMachine.add_timer(1){ Process.kill('TERM', pid) }
;TI"}
;T:@format0o;
;	[I"A@param [Integer]       pid     PID of the process to watch. ;TI"n@param [Class, Module] handler A class or module that implements event handlers associated with the file.;T:
@fileI"lib/eventmachine.rb;T:0@omit_headings_from_table_of_contents_below00I"c;T[ I"(pid, handler=nil, *args);T@$FI"EventMachine;TcRDoc::NormalModule00