>> I didn't try ghc-5.02 since I haven't installed it yet. > Could you do that? The IO library in 5.00.2 had a bug in fdToHandle > which meant that it didn't put the file descriptor into non-blocking > mode, and I suspect this is the cause of your problem. It works. Thank you. Max.