mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04: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
|
|
@ -877,7 +877,7 @@ static int flush_write(struct state *state, uint64_t current_time)
|
|||
SPA_AVBTP_PACKET_AAF_SET_SEQ_NUM(pdu, state->pdu_seq++);
|
||||
SPA_AVBTP_PACKET_AAF_SET_TIMESTAMP(pdu, ptime);
|
||||
|
||||
n = sendmsg(state->sockfd, &state->msg, 0);
|
||||
n = sendmsg(state->sockfd, &state->msg, MSG_NOSIGNAL);
|
||||
if (n < 0 || n != (ssize_t)state->pdu_size) {
|
||||
spa_log_error(state->log, "sendmdg() failed: %m");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue