Class | EventMachine::ProcessWatch |
In: |
lib/em/process_watch.rb
|
Parent: | Connection |
This is subclassed from EventMachine::Connection for use with the process monitoring API. Read the documentation on the instance methods of this class, and for a full explanation see EventMachine.watch_process.
Should be redefined with the user‘s custom callback that will be fired when the process exits.
stop_watching is called automatically after this callback
Should be redefined with the user‘s custom callback that will be fired when the prcess is forked.
There is currently not an easy way to get the pid of the forked child.