• src/syncterm/telnets.c

    From Deuc¿@VERT to Git commit to main/sbbs/master on Monday, December 30, 2024 14:52:14
    https://gitlab.synchro.net/main/sbbs/-/commit/42fd98a1e2e79ae91dc0e3fa
    Modified Files:
    src/syncterm/telnets.c
    Log Message:
    Set telnets_active to false on error, not true.

    This way, when an error occurs, it will at least terminate the
    session instead of requiring you to disconnect yourself.

    This partially addresses issue 174, assuming it's actually telnets.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Tuesday, December 31, 2024 01:46:20
    https://gitlab.synchro.net/main/sbbs/-/commit/f46582b9adaf2d303a591c17
    Modified Files:
    src/syncterm/telnets.c
    Log Message:
    Use an atomic_bool instead of a mutext for telnets_active

    This doesn't rely on implementation-defined behaviour. I would like
    to use call_once(), but I also want to be consistent with all the
    other code, so use pthread_once() for now.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Tuesday, December 31, 2024 01:59:18
    https://gitlab.synchro.net/main/sbbs/-/commit/678250a01a25df1bafea0f5b
    Modified Files:
    src/syncterm/telnets.c
    Log Message:
    Hrm, be more paranoid aboit __STDC_NO_ATOMICS__ I guess?

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Tuesday, December 31, 2024 02:09:38
    https://gitlab.synchro.net/main/sbbs/-/commit/5001a4ec263bcfc89dabe647
    Modified Files:
    src/syncterm/telnets.c
    Log Message:
    Apparently, just being defined is enough.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Tuesday, December 31, 2024 02:42:03
    https://gitlab.synchro.net/main/sbbs/-/commit/bb2c3ece7860d6d3e68e10c7
    Modified Files:
    src/syncterm/telnets.c
    Log Message:
    Whoops, close that #ifdef

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Tuesday, December 31, 2024 10:32:19
    https://gitlab.synchro.net/main/sbbs/-/commit/4966f43090eb13aa746bb9f1
    Modified Files:
    src/syncterm/telnets.c
    Log Message:
    C17 deprecated ATOMIC_INIT_VAR() so we can use regular initialization

    Since even Microsoft (experimentally) claims to support C17 atomics
    correctly, don't bother with the extra verbosity of using explicit
    atomic "stuff" and just use assigment/access as normal.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Friday, January 17, 2025 07:25:15
    https://gitlab.synchro.net/main/sbbs/-/commit/ad3236e3205dc25b9c3e3631
    Modified Files:
    src/syncterm/telnets.c
    Log Message:
    Set initial telnet modes in telnets

    Not sure how I missed this one.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net