Files
reverse-engineering-anything/scripts
AdolaniumandVincent Koc 1c8b3b64e8 fix(cli): isolate a synchronous resource-closer throw (#14796)
* fix(cli): isolate a synchronous resource-closer throw

closeCliResources invoked each closer while building the
Promise.allSettled input. A closer that threw before returning a
promise left that call, so later owners did not run.

Start each closer on its own turn. A synchronous throw stays with
that owner, and every other owner still settles. Closers stay
registered, so a later close retries them.

A failed registration can request process exit twice. The first
request now owns shutdown. A second registration fail or host exit
returns without starting another resource close or exit timer.

* test(cli): exercise duplicate exit after rendering failure

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-27 07:55:54 +08:00
..