BBS: TELESC.NET.BR Assunto: src/ssh/test/dssh_test.h De: Deuc¨ Data: Wed, 25 Mar 2026 23:06:00 -0700 ----------------------------------------------------------- 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)n --- mSynchronetn hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net ----------------------------------------------------------- [Voltar]