[darcs-users] darcs patch: Fix hang after a user input error (for example, EOF).

David Roundy droundy at darcs.net
Sun Sep 21 21:33:39 UTC 2008


On Thu, Sep 18, 2008 at 09:44:15AM -0700, Judah Jacobson wrote:
> The attached patch fixes a small issue I found in the non-haskeline
> user input code.  Namely, if darcs prompts for user input and the user
> types ctrl-D, darcs will hang until ctrl-C is pressed.  For example:
> 
> Shall I record this change? (1/1)  [ynWsfvpxdaqjk], or ? for help: y
> What is the patch name? [typed ctrl-D here] darcs: <stdin>: hGetLine:
> end of file
> [hang occurs here]
> ^CwithSignalsHandled: Interrupted!
> 
> -Judah
> 
> Thu Sep 18 09:30:17 PDT 2008  Judah Jacobson <judah.jacobson at gmail.com>
>   * Fix hang after a user input error (for example, EOF).

Applied.  Thanks!

David


More information about the darcs-users mailing list