System.Process bugs on Unix

Bryan O'Sullivan bos at serpentine.com
Wed Mar 28 15:20:15 EDT 2007


John Goerzen wrote:
>
> And strace shows that, sure enough, read(0,...) in grep is getting
> EAGAIN.
> 
> Sounds like somebody forgot to take the fd out of non-blocking mode.

Yep, that looks like what's happening.  See 
System/Process/Internals.hs:runProcessPosix.  I wonder why the 
lower-level runProcess that it calls is written in C.

	<b


More information about the Libraries mailing list