• src/sbbs3/services.cpp websrvr.cpp

    From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Tue Nov 24 00:19:27 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/9fd896e3299ee16622476178
    Modified Files:
    src/sbbs3/services.cpp websrvr.cpp
    Log Message:
    websrvr, services: initialize the JS error-reporter mutex once

    js_ErrorReporter() created its static mutex on first use, guarded only by
    a plain bool, so two threads reporting their first script error at once
    could both initialize it. Create it with pthread_once() instead. The lazy initialization dates from f2c8917897 (2024-12-14) and 23b07625c9
    (2024-12-16).

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)