Use spawn to replace fork + exec

This commit is contained in:
なつき 2024-08-09 13:45:47 -07:00
parent 5442a7e34f
commit 2e2db25496

View File

@ -59,9 +59,7 @@ module Utils
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