Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/childprocess/abstract_process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ def crashed?
def poll_for_exit(timeout)
log "polling #{timeout} seconds for exit"

end_time = Time.now + timeout
until (ok = exited?) || Time.now > end_time
end_time = Process.clock_gettime(Process::CLOCK_MONOTONIC) + timeout
until (ok = exited?) || Process.clock_gettime(Process::CLOCK_MONOTONIC) > end_time
sleep POLL_INTERVAL
end

Expand Down