RE: cvs commit: fptools/hslibs/util Makefile Select.lhs

"Simon Marlow" <[email protected]> Thu, 15 May 2003 13:29:34 +0100
Newsgroups gmane.comp.lang.haskell.cvs.hslibs
Message-ID <9584A4A864BD8548932F2F88EB30D1C60CF65C74@TVP-MSG-01.europe.corp.microsoft.com>
 
> stolz       2003/05/15 02:16:22 PDT
> 
>   Modified files:
>     hslibs/util          Makefile Select.lhs 
>   Log:
>   Fix hSelect for ghc-5.X: 'handleToFd' makes Handles 
> unusable afterwards,
>   so we take the short route to the underlying FD without any 
> sanity-checks.
>   (Side-effect: Dependency on -package posix no longer necessary)
>   
>   Fixes: SourceForge bug [734716] ghc-5.05: handle closed by hselect

This library should be considered heavily deprecated, since it will
cause all other Haskell threads to block during the select.  Perhaps
something similar but safer could be implemented using concurrency
instead?  Or we could use OS threads to make it thread safe.

Cheers,
	Simon