We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc8c21d commit 40ca72cCopy full SHA for 40ca72c
spec/octocatalog-diff/tests/util/parallel_spec.rb
@@ -39,10 +39,11 @@ def wait_on_me(pid)
39
status = nil
40
# just in case status never equals anything
41
count = 100
42
- while status.nil? or count <= 0
43
- status = Process.waitpid(pid, Process::WNOHANG)
+ while status.nil? or count > 0
44
count -= 1
+ status = Process.waitpid2(pid, Process::WNOHANG)
45
end
46
+ status
47
48
49
0 commit comments