From 2e2db25496e7625c5cda28385ca20dac6fcd28e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AA=E3=81=A4=E3=81=8D?= Date: Fri, 9 Aug 2024 13:45:47 -0700 Subject: [PATCH] Use spawn to replace fork + exec --- Library/Homebrew/utils/analytics.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Library/Homebrew/utils/analytics.rb b/Library/Homebrew/utils/analytics.rb index 0bc02f738f9e8..c4540961a098a 100644 --- a/Library/Homebrew/utils/analytics.rb +++ b/Library/Homebrew/utils/analytics.rb @@ -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