Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2020-07-11 02:59:21 +0300
committerAnna Henningsen <anna@addaleax.net>2020-07-14 16:07:20 +0300
commit725cf4764acb515be56b5e414b62f4cf92cf8ecd (patch)
tree96d93feb5bf2395e41b8bcddc2ad7fa6357f2ffb /src/node_worker.h
parentb58c06d92c3865b41a50171c2692e36c0b487420 (diff)
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. PR-URL: https://github.com/nodejs/node/pull/34303 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'src/node_worker.h')
-rw-r--r--src/node_worker.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_worker.h b/src/node_worker.h
index 1b9ba322bed..658018bb066 100644
--- a/src/node_worker.h
+++ b/src/node_worker.h
@@ -114,6 +114,7 @@ class Worker : public AsyncWrap {
bool stopped_ = true;
bool has_ref_ = true;
+ uint64_t environment_flags_ = EnvironmentFlags::kNoFlags;
// The real Environment of the worker object. It has a lesser
// lifespan than the worker object itself - comes to life