• src/syncterm/telnets.c

    From Deucе@VERT to Git commit to main/sbbs/master on Mon Dec 30 14:52:14 2024
    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 Tue Dec 31 01:46:20 2024
    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 Tue Dec 31 01:59:18 2024
    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 Tue Dec 31 02:09:38 2024
    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 Tue Dec 31 02:42:03 2024
    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 Tue Dec 31 10:32:19 2024
    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