Unexpected signal on hclosing stdout twice

Sigbjorn Finne sof@galois.com
Thu, 5 Sep 2002 07:38:42 -0700


 "Alastair Reid" <alastair@reid-consulting-uk.ltd.uk> writes:
> 
> Running 'hClose stdout' twice in a row causes Hugs to abort:
> 
  ...
> IO> hPutStr stdout "abcde" >> hClose stdout
> abcde
> IO> hPutStr stdout "abcde" >> hClose stdout
> 
> Unexpected signal
> 

Thanks for the report - the repeated closing isn't the problem,
but the handle you're trying to close. I've modified IO.hClose
to treat closing of any of the standard handles as a nop.

--sigbjorn