Skip to content

Commit

Permalink
Use spawn to replace fork + exec
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed Aug 9, 2024
1 parent b6b75bb commit 0009456
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Library/Homebrew/utils/analytics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ def deferred_curl(url, args)
puts "#{curl} #{args.join(" ")} \"#{url}\""
puts Utils.popen_read(curl, *args, url)
else
pid = fork do
exec curl, *args, url
end
pid = spawn curl, *args, url
Process.detach T.must(pid)
end
end
Expand Down

0 comments on commit 0009456

Please sign in to comment.