https://gitlab.synchro.net/main/sbbs/-/commit/8e965d4d31230d9722fdabaf
Modified Files:
src/syncterm/modem.c
Log Message:
Fix modem.c invalid handle use and data race
- modem_close(): comGetModemStatus() was called on COM_HANDLE_INVALID
instead of oldcom in the DCD polling loop.
- Mark static com variable as _Atomic since it is written by the main
thread (modem_close sets it to COM_HANDLE_INVALID) and read by the
I/O threads in their loop conditions.
Co-Authored-By: Claude Opus 4.6 <
noreply@anthropic.com>
--- SBBSecho 3.37-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)