From 8c5283959995a5c2303e2aabafed1e443cfbf0dc Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Tue, 21 Apr 2020 17:20:55 +0100 Subject: [PATCH] Disable SIGPIPE when sending S1AP messages in the EPC. --- srsepc/src/mme/s1ap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsepc/src/mme/s1ap.cc b/srsepc/src/mme/s1ap.cc index a43874ca2..669fc4c42 100644 --- a/srsepc/src/mme/s1ap.cc +++ b/srsepc/src/mme/s1ap.cc @@ -209,7 +209,7 @@ bool s1ap::s1ap_tx_pdu(const asn1::s1ap::s1ap_pdu_c& pdu, struct sctp_sndrcvinfo } buf->N_bytes = bref.distance_bytes(); - ssize_t n_sent = sctp_send(m_s1mme, buf->msg, buf->N_bytes, enb_sri, 0); + ssize_t n_sent = sctp_send(m_s1mme, buf->msg, buf->N_bytes, enb_sri, MSG_NOSIGNAL); if (n_sent == -1) { m_s1ap_log->console("Failed to send S1AP PDU. Error: %s\n", strerror(errno)); m_s1ap_log->error("Failed to send S1AP PDU. Error: %s \n", strerror(errno));