Commit e97522ee authored by rswindell's avatar rswindell
Browse files

Storing the node file (node.dab) descriptor in the scfg_t was a "bad idea" {tm}

The scfg_t instances are often shared between threads and we can't really share
file descriptors between threads, so we ended up with file descriptor leaks and
race conditions.

Instead, define/allocate/free a new js_system_private_t where the scfg_t* and
the nodefile (descriptor) are kept - per "system" instance.
parent 5716774a
This diff is collapsed.
......@@ -615,7 +615,6 @@ typedef struct
// Run-time state information (not configuration)
int tls_certificate;
int nodefile;
} scfg_t;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment