We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 665760a commit 06c6d1eCopy full SHA for 06c6d1e
memtier_benchmark.cpp
@@ -112,6 +112,10 @@ void setup_signal_handlers()
112
g_main_pid = getpid();
113
gettimeofday(&g_benchmark_start_time, NULL);
114
115
+ // Ignore SIGPIPE to prevent exit when writing to closed TLS sockets
116
+ // This allows the application to handle connection errors gracefully
117
+ signal(SIGPIPE, SIG_IGN);
118
+
119
struct sigaction sa;
120
sa.sa_handler = sigint_handler;
121
sigemptyset(&sa.sa_mask);
0 commit comments