Use spawn to replace fork + exec
This commit is contained in:
parent
5442a7e34f
commit
2e2db25496
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user