mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse: use send to avoid SIGPIPE signals
This commit is contained in:
parent
90b52b9ff4
commit
a536c38fbe
1 changed files with 2 additions and 2 deletions
|
|
@ -947,8 +947,8 @@ static int send_data(struct client *client, struct data *d)
|
||||||
desc.offset_hi = 0;
|
desc.offset_hi = 0;
|
||||||
desc.offset_lo = 0;
|
desc.offset_lo = 0;
|
||||||
desc.flags = 0;
|
desc.flags = 0;
|
||||||
write(client->source->fd, &desc, sizeof(desc));
|
send(client->source->fd, &desc, sizeof(desc), MSG_NOSIGNAL);
|
||||||
write(client->source->fd, d->data, d->offset);
|
send(client->source->fd, d->data, d->offset, MSG_NOSIGNAL);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue