Re: Unexpected signal on hclosing stdout twice
"Sigbjorn Finne" <[email protected]>
| Newsgroups | gmane.comp.lang.haskell.hugs.bugs |
|---|---|
| Message-ID | <002001c254e9$eec22810$1e32a8c0@sofxp> |
"Alastair Reid" <[email protected]> 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