Subj : src/conio/ciolib.c To : Git commit to main/sbbs/master From : Deucе Date : Sat Jan 03 2026 11:58 am https://gitlab.synchro.net/main/sbbs/-/commit/ab56f3e0a9cdab624e6f5315 Modified Files: src/conio/ciolib.c Log Message: Fix potential races around init and ungot chars Since we now require pthreads for ciolib anyway (pthread_once_t in ciolib.h), we can avoid races properly. Make initialized atomic, and have a lock around updating it, and add a lock around the ungot characters (heavily used by Windows GDI). This possibly fixes bug ticket 214. .