• src/ssh/test/dssh_test.h

    From Deucе@VERT to Git commit to main/sbbs/master on Wed Mar 25 23:06:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/bbeb4cfe06527973cc81a7b7
    Modified Files:
    src/ssh/test/dssh_test.h
    Log Message:
    Fix flaky rekey SIGPIPE: ignore SIGPIPE in test harness

    DH-GEX rekey selftests intermittently died from SIGPIPE when the
    demux thread's send() raced with the peer closing its socketpair
    end. MSG_NOSIGNAL on the mock I/O's send() only covers that
    specific call — the library's internal send path through the tx
    callback could still deliver SIGPIPE.

    Fix: signal(SIGPIPE, SIG_IGN) at test program startup, same as
    any network-facing application. send() returns EPIPE instead,
    which the library handles as a normal I/O error.

    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

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