worker: add option to track unmanaged file descriptors
src: add option to track unmanaged file descriptors
Add the ability to track “raw” file descriptors, i.e. integers returned
by fs.open()
, and close them on Environment
shutdown, to match the
behavior for all other resource types (which are also closed on
shutdown).
worker: add option to track unmanaged file descriptors
Add a public option for Workers which adds tracking for raw
file descriptors, as currently, those resources are not cleaned
up, unlike e.g. FileHandle
s.
@nodejs/workers
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines