Skip to content

Conversation

bdunne
Copy link
Member

@bdunne bdunne commented May 7, 2013

If command being run had output of more than 64k,the pipe would fill and
the process would hang waiting for room to write more data into the pipe.
Reading the pipe synchrously eliminates the problem.
See the following link for more detail on the problem and another solution.
http://stackoverflow.com/questions/13829830/ruby-process-spawn-stdout-pipe-buffer-size-limit/13846146#13846146

If command being run had output of more than 64k,the pipe would fill and
the process would hang waiting for room to write more data into the pipe.
Reading the pipe synchrously eliminates the problem.
See the following link for more detail on the problem and another solution.
http://stackoverflow.com/questions/13829830/ruby-process-spawn-stdout-pipe-buffer-size-limit/13846146#13846146
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling f9d110f on brandondunne:fix_full_pipe_on_command into 98f5a32 on ManageIQ:master.

Fryguy added a commit that referenced this pull request May 7, 2013
Fix issue related to command output filling up the IO pipe.
@Fryguy Fryguy merged commit ee7eefd into ManageIQ:master May 7, 2013
@bdunne bdunne deleted the fix_full_pipe_on_command branch May 7, 2013 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants