daniel has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmocore/+/34099 )


Change subject: osmo_io: Use MSG_NOSIGNAL to avoid SIGPIPE on write
......................................................................

osmo_io: Use MSG_NOSIGNAL to avoid SIGPIPE on write

Change-Id: I85433124a8e80fc2aa19b551bdaf2655ef1eea2c
---
M src/core/osmo_io.c
1 file changed, 10 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/99/34099/1

diff --git a/src/core/osmo_io.c b/src/core/osmo_io.c
index f9d04fd..db1b5ad 100644
--- a/src/core/osmo_io.c
+++ b/src/core/osmo_io.c
@@ -321,7 +321,7 @@
        if (!msghdr)
                return -ENOMEM;

-       msghdr->flags = 0;
+       msghdr->flags = MSG_NOSIGNAL;
        msghdr->iov[0].iov_base = msgb_data(msghdr->msg);
        msghdr->iov[0].iov_len = msgb_length(msghdr->msg);
        msghdr->hdr.msg_iov = &msghdr->iov[0];

--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/34099
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I85433124a8e80fc2aa19b551bdaf2655ef1eea2c
Gerrit-Change-Number: 34099
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <[email protected]>
Gerrit-MessageType: newchange

Reply via email to