[darcs-devel] [issue1026] pull => bug in get_extra commuting patch (2.x)

Thorkil Naur bugs at darcs.net
Wed Aug 27 10:22:05 UTC 2008


Thorkil Naur <naur at post11.tele.dk> added the comment:

> Try this recipe
> * Get a GHC repo (I'd start with a tarball from http://darcs.haskell.org)
> * Get a packages/array repo
> * Pull from the former into the latter

For example:

> $ tar xjf /Users/thorkilnaur/tn/download/GHC/darcs.haskell.org/ghc-HEAD-2008-08-17-ghc.tar.bz2
> $ darcs get http://darcs.haskell.org/packages/array
> Finished getting.
> $ ls
> array   ghc
> $ cd array/
> $ darcs pull ../ghc
> darcs: bug in get_extra commuting patch:
> Fri Apr 22 19:00:49 CEST 2005  sof
>   * [project @ 2005-04-22 17:00:49 by sof]
>   [mingw only]
>   Better handling of I/O request abortions upon throwing an exception
>   to a Haskell thread. As was, a thread blocked on an I/O request was
>   simply unblocked, but its corresponding worker thread wasn't notified
>   that the request had been abandoned.
>
>   This manifested itself in GHCi upon Ctrl-C being hit at the prompt -- the
>   worker thread blocked waiting for input on stdin prior to Ctrl-C would
>   stick around even though its corresponding Haskell thread had been
>   thrown an Interrupted exception. The upshot was that the worker would
>   consume the next character typed in after Ctrl-C, but then just dropping
>   it. Dealing with this turned out to be even more interesting due to
>   Win32 aborting any console reads when Ctrl-C/Break events are delivered.
>
>   The story could be improved upon (at the cost of portability) by making
>   the Scheduler able to abort worker thread system calls; as is, requests
>   are cooperatively abandoned. Maybe later.
>
>   Also included are other minor tidyups to Ctrl-C handling under mingw.
>
>   Merge to STABLE.
> $

Best regards
Thorkil

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1026>
__________________________________


More information about the darcs-devel mailing list