raising a SIGINT when the child thread has an exception so that the parent thread can exit all the threads and clean up gracefully

This commit is contained in:
2025-07-09 17:19:54 +02:00
parent d8ee0c2279
commit ef8d8a5fd2
2 changed files with 41 additions and 26 deletions

View File

@@ -29,6 +29,9 @@ Receiver::~Receiver() = default;
Receiver::Receiver(uint16_t port) {
validatePortNumber(port);
if (port == 9999) {
throw sls::RuntimeError("Throwing for testing purposes. ");
}
tcpipInterface = make_unique<ClientInterface>(port);
}