mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
Fix calls to sendmsg()
Align cmsg buffers properly and use MSG_NOSIGNAL.
This commit is contained in:
parent
90c955c223
commit
c1920163d5
3 changed files with 12 additions and 6 deletions
|
|
@ -136,7 +136,7 @@ static int flush_write(struct stream *stream, uint64_t current_time)
|
|||
p->timestamp = ptime;
|
||||
p->dbc = dbc;
|
||||
|
||||
n = sendmsg(stream->source->fd, &stream->msg, 0);
|
||||
n = sendmsg(stream->source->fd, &stream->msg, MSG_NOSIGNAL);
|
||||
if (n < 0 || n != (ssize_t)stream->pdu_size) {
|
||||
pw_log_error("sendmsg() failed %zd != %zd: %m",
|
||||
n, stream->pdu_size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue