[PATCH 1 of 9] atexit: add special-purpose atexit functionality to util

Bryan O'Sullivan bos at serpentine.com
Mon Apr 10 16:15:56 EDT 2017

On Mon, Apr 10, 2017 at 12:49 PM, Jun Wu <quark at fb.com> wrote:

> I wonder if it's better if the global state is moved to a
> "dispatch.request"
> or "ui" object. That may give threaded request handlers more confidence.

The new atexit code is only run during process exit. I was careful to
ensure that I wasn't accidentally running it at the end of e.g. every web
or chg request, but if they somehow arose, such cases would result in a
process crash and test failure.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20170410/9b5b74a0/attachment.html>

More information about the Mercurial-devel mailing list