Maybe this is by design, but in case it isn't: I was a little
suprprised when I came across this behavior of ghci:

   ghci
   ...  GHC Interactive, version 5.04.1, for Haskell 98. ...

   Prelude> :m Concurrent
   Prelude Concurrent> let loop c = putChar c >> loop c
                       in forkIO (loop 'a') >> (loop 'z')
   zazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazaza
   zazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazaza
   zazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazaza
   Interrupted.
   aPrelude Concurrent> sum [1..100]
   aaaaaaaaaaaaa5050
   aPrelude Concurrent>  1+2
   aaaaaaaa3

Obviously, "loop 'a'" has never been terminated and starts running anytime
execution is in progress.  I might expect that either interrupting the
execution would kill *all* processes or that after interrupting "loop 'z'"
that I would still see the "loop 'a'" executing.

This is on 386 Linux.

- Mark

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to