[Haskell-cafe] file descriptors and handles

2010-03-08 Thread Mathijs Kwik
Hi all, Today I had a look at chapter 20 of RWH. The extended example (stripped down HSH) in the end is great. I think I understand it, but I have some questions left: the master process closes the client-sided FD's. it uses fdToHandle for the other sides of the pipe to get a handle to stdIn and

Re: [Haskell-cafe] file descriptors and handles

2010-03-08 Thread Brandon S. Allbery KF8NH
On Mar 8, 2010, at 14:26 , Mathijs Kwik wrote: it writes to the stdIn handle and closes it afterwards. - doesn't it need to close the fd as well? Once you've made a Handle from it, the Handle owns it; in particular, when the Handle is finalized it will close the fd. Also, attempting to