convering Fds to Handles

Jens Petersen petersen@redhat.com
17 May 2002 17:43:14 +0900


Sebastien Carlier <sebc@wise-language.org> writes:

> >> I have had problems with pipes and runProcess, now I am using
> >> forkProcess/executeFile/getProcessStatus and it works properly.
> 
> > Non-lazy IO presumably?  Do you have an example you can show?
> 
> Sure:
> 
> ---_%--- cut here ---_%---
<snip>
> ---_%--- cut here ---_%---
> 
> It seems that the output is truncated to some buffer size, and I couldn't
> get rid of the error message.
> 
> If you set up the file descriptors yourself (using dupTo, fdClose,
> forkProcess, and executeFile as appropriate), it seems to works
> better (no error message, and no limit on input/ouput size).

I meant do you have an example of your working code.

Jens