From a3390e54b14c7d14d79a24d7deab4717ab3600e0 Mon Sep 17 00:00:00 2001 From: Christian Giese Date: Wed, 20 Sep 2023 08:08:33 +0000 Subject: [PATCH] Ignore SIGPIPE --- code/bngblaster/src/bbl_ctrl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/bngblaster/src/bbl_ctrl.c b/code/bngblaster/src/bbl_ctrl.c index 464e46f1..af3f8077 100644 --- a/code/bngblaster/src/bbl_ctrl.c +++ b/code/bngblaster/src/bbl_ctrl.c @@ -482,6 +482,9 @@ bbl_ctrl_socket_init() timer_add_periodic(&g_ctx->timer_root, &ctrl->main.timer, "CTRL Socket Main Timer", 0, 1000 * MSEC, ctrl, &bbl_ctrl_socket_main_job); LOG(INFO, "Opened control socket %s\n", g_ctx->ctrl_socket_path); + + /* Ignore SIGPIPE */ + signal(SIGPIPE, SIG_IGN); return true; }