diff options
author | Lennart Poettering <lennart@poettering.net> | 2007-09-19 00:12:01 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2007-09-19 00:12:01 +0000 |
commit | 75f799a3d885a5af42c5cb3af49da1299b8425cc (patch) | |
tree | 2121e5bf9f415b113b2df6527281e388958d89f1 /src/daemon | |
parent | 0fcad977828665e46849cc4efe758ebc42450a66 (diff) |
make O_CLOEXEC, O_NONBLOCK and socket low latency fd ops more uniform: always return void, name them similarly, only pass a single fd
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1867 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/cpulimit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/daemon/cpulimit.c b/src/daemon/cpulimit.c index 0fe11ea6..a61f43eb 100644 --- a/src/daemon/cpulimit.c +++ b/src/daemon/cpulimit.c @@ -184,10 +184,10 @@ int pa_cpu_limit_init(pa_mainloop_api *m) { return -1; } - pa_make_nonblock_fd(the_pipe[0]); - pa_make_nonblock_fd(the_pipe[1]); - pa_fd_set_cloexec(the_pipe[0], 1); - pa_fd_set_cloexec(the_pipe[1], 1); + pa_make_fd_nonblock(the_pipe[0]); + pa_make_fd_nonblock(the_pipe[1]); + pa_make_fd_cloexec(the_pipe[0]); + pa_make_fd_cloexec(the_pipe[1]); api = m; io_event = api->io_new(m, the_pipe[0], PA_IO_EVENT_INPUT, callback, NULL); |