Skip to content

Deadlock

fauno requested to merge deadlock into rails

Los sitios con salidas relativamente largas están bloqueando la CI (de vuelta!)

Ahora según la documentación resulta que había que leerlo en otro Thread y parece funcionar:

You should be careful to avoid deadlocks. Since pipes are fixed length buffers, ::popen3(“prog”) {|i, o, e, t| o.read } deadlocks if the program generates too much output on stderr. You should read stdout and stderr simultaneously (using threads or IO.select). However, if you don’t need stderr output, you can use ::popen2. If merged stdout and stderr output is not a problem, you can use ::popen2e. If you really need stdout and stderr output as separate strings, you can consider ::capture3.

https://ruby-doc.org/stdlib-2.7.0/libdoc/open3/rdoc/Open3.html

Merge request reports