Sha256: 6d4be797a17631ca83f927c38d96371325d48467f2917a9f8430371b31d8a5a2

Contents?: true

Size: 244 Bytes

Versions: 9

Compression:

Stored size: 244 Bytes

Contents

module Ringleader
  class WaitForExit
    include Celluloid

    def initialize(pid, app)
      @pid, @app = pid, app
      async.wait
    end

    def wait
      ::Process.waitpid @pid
      @app.async.exited
      terminate
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ringleader-1.1.8 lib/ringleader/wait_for_exit.rb
ringleader-1.1.7 lib/ringleader/wait_for_exit.rb
ringleader-1.1.6 lib/ringleader/wait_for_exit.rb
ringleader-1.1.5 lib/ringleader/wait_for_exit.rb
ringleader-1.1.5.pre2 lib/ringleader/wait_for_exit.rb
ringleader-1.1.5.pre1 lib/ringleader/wait_for_exit.rb
ringleader-1.1.5.pre0 lib/ringleader/wait_for_exit.rb
ringleader-1.1.4 lib/ringleader/wait_for_exit.rb
ringleader-1.1.3 lib/ringleader/wait_for_exit.rb