Skip to content

Commit

Permalink
Use Process::fork in place of fork
Browse files Browse the repository at this point in the history
to make it easier to override the default behaviour of fork
if needed.
  • Loading branch information
Stevo-S authored and tmm1 committed Dec 19, 2023
1 parent 4305f16 commit 5ec0ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/test_queue/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def spawn_workers
@concurrency.times do |i|
num = i + 1

pid = fork do
pid = Process.fork do
@server&.close

iterator = Iterator.new(@test_framework, relay? ? @relay : @socket, method(:around_filter), early_failure_limit: @early_failure_limit, run_token: @run_token)
Expand Down

0 comments on commit 5ec0ee1

Please sign in to comment.