diff options
author | Stan Hu <stanhu@gmail.com> | 2018-07-12 11:06:36 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-07-12 16:21:30 -0700 |
commit | fd392cd7255cba80bc6ee0ce3139db3732392c19 (patch) | |
tree | 9ac18f7a22c866aa00bbabfd484d11e0177fb21d /lib/api | |
parent | 226d4d0eaa09a035ccb4cd8e83f92ffd9af9b40c (diff) | |
download | gitlab-ce-fd392cd7255cba80bc6ee0ce3139db3732392c19.tar.gz |
Avoid process deadlock in popen by consuming input pipessh-fix-stderr-pipe-consumption
A process that spews a lot of output to stderr or stdout could stall out
due to the pipe buffer being full. As described in https://bugs.ruby-lang.org/issues/9082,
we can use the trick used in Ruby's capture3 function to read the pipes in separate
threads.
Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/6895
Diffstat (limited to 'lib/api')
0 files changed, 0 insertions, 0 deletions