• delete temporary files on shutdown

    From Nigel Reed@1:103/705 to GitLab issue in main/sbbs on Tuesday, August 13, 2024 10:16:28
    open https://gitlab.synchro.net/main/sbbs/-/issues/776

    Yet again, I find myself with my /sbbs/tmp directory stuffed with old, empty SBBS_SSJS.*.html files.

    Please have the web thread delete these files during shutdown.

    $ ls -l SBBS*.html|wc -l
    2376

    Since June 26th.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Monday, September 09, 2024 12:01:56
    https://gitlab.synchro.net/main/sbbs/-/issues/776#note_5596

    The web server (web thread) already tracks temp files it creates and deletes them. If there are temp files left in your temp directory after sbbs has terminated, that's most likely due to an sbbs crash (e.g. segfault).

    The temp directory can be shared with other processes, so the web server can't just blindly go deleting every file in the temp directory during shutdown (as seems to be the request here).
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)