Disable SIGPIPE when sending S1AP messages in the EPC.

This commit is contained in:
Pedro Alvarez 2020-04-21 17:20:55 +01:00
parent 218531b418
commit 8c52839599
1 changed files with 1 additions and 1 deletions

View File

@ -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(); 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) { if (n_sent == -1) {
m_s1ap_log->console("Failed to send S1AP PDU. Error: %s\n", strerror(errno)); 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)); m_s1ap_log->error("Failed to send S1AP PDU. Error: %s \n", strerror(errno));