Class: Ringleader::WaitForExit
- Inherits:
-
Object
- Object
- Ringleader::WaitForExit
- Includes:
- Celluloid
- Defined in:
- lib/ringleader/wait_for_exit.rb
Instance Method Summary collapse
-
#initialize(pid, app) ⇒ WaitForExit
constructor
A new instance of WaitForExit.
- #wait ⇒ Object
Constructor Details
#initialize(pid, app) ⇒ WaitForExit
Returns a new instance of WaitForExit.
5 6 7 8 |
# File 'lib/ringleader/wait_for_exit.rb', line 5 def initialize(pid, app) @pid, @app = pid, app async.wait end |
Instance Method Details
#wait ⇒ Object
10 11 12 13 14 |
# File 'lib/ringleader/wait_for_exit.rb', line 10 def wait ::Process.waitpid @pid @app.async.exited terminate end |