INNER CODE UNIT · Ruby
join
EugenMayer/docker-sync · lib/docker-sync/command.rb:65
def join(limit = FOREVER)
return self if @status
tf = Time.now + limit
until (t = Time.now) >= tf
capture(tf - t)
res = Process.waitpid(@pid, Process::WNOHANG)
if res
@status = $?
return self
end
end
nil
end
private