• src/sbbs3/js_system.c scfgdefs.h

    From rswindell@VERT to CVS commit on Monday, September 02, 2019 10:27:36
    src/sbbs3 js_system.c 1.175 1.176 scfgdefs.h 1.51 1.52
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv14321

    Modified Files:
    js_system.c scfgdefs.h
    Log Message:
    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.


    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net