Simon Marlow wrote:
> George Russell wrote:
> > This isn't exactly urgent but Glasgow Haskell seems to be freezing
> > stdin in such a way that other applications can't get at it. [...]
>
> We set stdin to non-blocking mode, so that could be the problem
> ("resource temporarilty unavailable" is the error you get for trying
> to read from a non-blocking file descriptor when there's no input
> available).
>
> What shell are you using? it sounds like you're using a shell that
> doesn't reset the tty back to a sane state.
Perhaps this is a related problem: Haskell programs compiled ghc-4.04
(or 4.05, I can't remember exactly) sometimes totally screw up the
communication between Bash and XEmacs in a shell buffer: Bash seems
to receive an infinite stream of char 255 (=> .bash_history grows
to dozens of Megs) after a Haskell program terminates. I've got no
idea why and when exactly this happens, but I hope somebody else has...
:-)
Cheers,
Sven
P.S.: tcsh seems to be immune against this problem.
--
Sven Panne Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen Oettingenstr. 67
mailto:[EMAIL PROTECTED] D-80538 Muenchen
http://www.informatik.uni-muenchen.de/~Sven.Panne