mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
try to use send(,,MSG_NOSIGNAL) instead of write() wherever possible (which
will allow us to drop the SIGPIPE check). Cache the results of the last write()/send() to make sure that we do not issue more than necessary system calls. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1083 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
350a253dc5
commit
860be2e70b
17 changed files with 100 additions and 58 deletions
|
|
@ -467,7 +467,7 @@ int pa__init(pa_core *c, pa_module*m) {
|
|||
*/
|
||||
if (u->source) {
|
||||
char *buf = pa_xnew(char, u->sample_size);
|
||||
read(u->fd, buf, u->sample_size);
|
||||
pa_read(u->fd, buf, u->sample_size, NULL);
|
||||
pa_xfree(buf);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue