Subprocesses (was: [ANNOUNCE] shell-haskell 1.0.0)

Simon Marlow simonmar@microsoft.com
Fri, 9 May 2003 13:29:39 +0100


=20
> You need to have two rather than one handle if you want to=20
> know when the process is finishing outputting.
> Otherwise its output filehandle will never reach EOF.=20

Actually hIsEOF only looks at the read side of a read/write Handle, so
this would still work.

> Generally you won't want to close the=20
> output and input Handles simultaneously.

Good point.  However, closing just one side of a read/write Handle is
something we've wanted before IIRC: it's useful when dealing with
sockets.

Cheers,
	Simon