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

Volker Stolz <[email protected]> Thu, 15 May 2003 15:17:02 +0200
Newsgroups gmane.comp.lang.haskell.cvs.hslibs
Message-ID <[email protected]>
On Thu, May 15, 2003 at 01:29:34PM +0100, Simon Marlow wrote:
> > 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.

We should just keep it around in /hslibs but not move it into /libraries.
If somebody indeed has any real use for this function, he can as well
contribute a better, concurrent version.
[Can you take care of the SourceForge bug tracker, please?]
-- 
http://lambda.foldr.org/~vs/ * PGP * S/MIME