diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-07-14 22:42:01 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-07-14 22:42:01 +0000 |
commit | 860be2e70b33ff5eeb9130f80c4b1c096a2a8f27 (patch) | |
tree | a3193083ecdb5055a4536c22ea394c8243731571 /src/modules/module-esound-compat-spawnfd.c | |
parent | 350a253dc559956b63ced4e602b1040ccba66f98 (diff) |
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
Diffstat (limited to 'src/modules/module-esound-compat-spawnfd.c')
-rw-r--r-- | src/modules/module-esound-compat-spawnfd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-esound-compat-spawnfd.c b/src/modules/module-esound-compat-spawnfd.c index c4bc342a..54e090e4 100644 --- a/src/modules/module-esound-compat-spawnfd.c +++ b/src/modules/module-esound-compat-spawnfd.c @@ -59,7 +59,7 @@ int pa__init(pa_core *c, pa_module*m) { goto finish; } - if (pa_loop_write(fd, &x, sizeof(x)) != sizeof(x)) + if (pa_loop_write(fd, &x, sizeof(x), NULL) != sizeof(x)) pa_log(__FILE__": WARNING: write(%u, 1, 1) failed: %s", fd, pa_cstrerror(errno)); close(fd); |