Skip to content

Commit d0f62be

Browse files
Isaiah FrantzIsaiah Frantz
authored andcommitted
the actual pid is in the 1st index of the pid array
1 parent e9bb0b7 commit d0f62be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/octocatalog-diff/util/parallel.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def self.run_tasks_parallel(result, task_array, logger)
130130
# Waiting for children and handling results
131131
while pidmap.any?
132132
pidmap.each do |pid|
133-
status = Process.waitpid2(pid, Process::WNOHANG)
133+
status = Process.waitpid2(pid[0], Process::WNOHANG)
134134
next if status.nil?
135135
this_pid, exit_obj = status
136136
next unless this_pid && pidmap.key?(this_pid)

0 commit comments

Comments
 (0)