1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Work around getaddrinfo deadlock in forked process

See https://bugs.ruby-lang.org/issues/17220.

This will prevent every CI run from getting stuck and eventually timing
out after 30 minutes.
This commit is contained in:
Eugene Kenny 2020-10-16 01:00:12 +01:00
parent 64b1c81532
commit 7cf8e30902

View file

@ -24,6 +24,7 @@ module SidekiqJobsManager
continue_read, continue_write = IO.pipe
death_read, death_write = IO.pipe
sleep 1
@pid = fork do
continue_read.close
death_write.close