[PATCH stable] pager: fork and exec pager as parent process

Yuya Nishihara yuya at tcha.org
Sun May 16 10:46:33 CDT 2010


Brodie Rao wrote:
> # HG changeset patch
> # User Brodie Rao <brodie at bitheap.org>
> # Date 1272913234 18000
> # Branch stable
> # Node ID d7625733fa0f33b913f7432941ba436f4645cea9
> # Parent  b8d0b4721affa90241f304272e0836ba566d0b3a
> pager: fork and exec pager as parent process
> 
> With the pager as the child process instead of the parent process, the
> termination of the parent Mercurial process can cause the terminal to return
> before the pager exits. Inverting the relationship prevents that issue.
> 
> Platforms without fork() will continue to use util.popen().

Just FYI, I tried this patch for a few days, and it works correctly, and seems
fixed the problem randomly occured before.
Without this patch, the next prompt sometimes got broken after running hg,
though I couldn't figure out why.

Yuya,


More information about the Mercurial-devel mailing list