mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Worker IDs were handed out round-robin and never released, so a file that started after another finished could get an ID still held by a live process. Track the IDs in use, hand out the lowest free one, and release it in a finally block once the child process exits. Refs: https://github.com/nodejs/node/pull/61394 Signed-off-by: Vasiliy Serpokryl <vasiliy.serpokryl@mail.ru> PR-URL: https://github.com/nodejs/node/pull/65739 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com>