Re: IO concurrency

2001-10-17 Thread Max Kirillov
>> 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. __

RE: IO concurrency

2001-10-16 Thread Simon Marlow
> 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. Cheers, Simon _

Re: IO concurrency

2001-10-15 Thread Max Kirillov
On Mon, Oct 15, 2001 at 04:47:25PM +0100, Simon Marlow wrote: > I tried this here on Linux/x86 with 5.02 and it seems to work fine. > Instead of the tcl/tk script you mentioned I used a FIFO in /tmp/fifo > and made the runProcess just call "cat /tmp/fifo". > Which GHC version and platform is this

RE: IO concurrency

2001-10-15 Thread Simon Marlow
> Playing with GHC, I met some oddity. > Consider the example: > > > import IO > > import Concurrent > > import Posix > > import PosixIO > > > > main = do > > (fdIn, fdIn_send) <- createPipe > > hIn_send <- fdToHandle fdIn_send > > hIn <- fdToHandle fdIn > > -- The "waiter"

Re: IO concurrency

2001-10-11 Thread Max A . K .
On Thu, Oct 11, 2001 at 01:28:39PM +0200, Volker Stolz wrote: > In local.glasgow-haskell-users, you wrote: >>> interact hIn = do >>> line <- hGetLine hIn >>> numIn <- handleToInt {-made from handleToFd & fdToInt-} >>> -- threadWaitRead numIn {-3-} > > Why should uncomme

Re: IO concurrency

2001-10-09 Thread Max A . K .
I forgot to say: that's ghc-5.00.1, linux. ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users