BBS:      TELESC.NET.BR
Assunto:  src/syncterm/modem.c
De:       Deuc¨
Data:     Sun, 15 Mar 2026 14:09:13 -0700
-----------------------------------------------------------
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 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]