On Tue, Mar 20, 2012 at 17:51, Rouan van Dalen <rvda...@yahoo.co.uk> wrote:

> If I try to su the runShell function with the following command, it simply
> blocks forever:
>
>     git --no-pager blame <your git file here>
>
> but if I do:
>
>     git status
>
> The runShell function works as expected.  Can someone shed some light on
> why the 'git blame' command blocks?  Interrestingly enough, if I
>

You're trying to run the command and then collect all the output afterward;
this requires the OS to buffer potentially very large amounts of data,
whereas most OSes cache only a very small amount over a pipe.  You will
need to read the data as the command runs to avoid blocking, then close the
process once you have read EOF.

-- 
brandon s allbery                                      allber...@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to