commit | 92efac26d70f6623cb45386128b85e53863b2d6b | [log] [tgz] |
---|---|---|
author | Daniel Willmann <dwillmann@sysmocom.de> | Tue Aug 01 09:55:13 2023 +0200 |
committer | Daniel Willmann <dwillmann@sysmocom.de> | Tue Aug 08 10:02:33 2023 +0200 |
tree | 38734eeb8ce9e278260025bad415feb7096b82e0 | |
parent | f083382b9cbe454e3f316a65b70aedd0752cf8fa [diff] [blame] |
osmo_io: Use MSG_NOSIGNAL to avoid SIGPIPE on write Change-Id: I85433124a8e80fc2aa19b551bdaf2655ef1eea2c
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];