diff options
author | Lennart Poettering <lennart@poettering.net> | 2007-09-12 00:17:51 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2007-09-12 00:17:51 +0000 |
commit | d9c4c9509d34ba89db06ff1252f3da18c6fd623b (patch) | |
tree | c43528c07e55bd4aaa2cf618056e7679c9c7f14a /src/pulse/context.c | |
parent | 7f92542420ef6085b6f090954052266cc70af8a1 (diff) |
add new pa_pipe_close() API to close two fds at the same time
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1812 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulse/context.c')
-rw-r--r-- | src/pulse/context.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pulse/context.c b/src/pulse/context.c index 1ed250f9..a39646d3 100644 --- a/src/pulse/context.c +++ b/src/pulse/context.c @@ -585,10 +585,7 @@ static int context_connect_spawn(pa_context *c) { return 0; fail: - if (fds[0] != -1) - pa_assert_se(pa_close(fds[0]) == 0); - if (fds[1] != -1) - pa_assert_se(pa_close(fds[1]) == 0); + pa_close_pipe(fds); unlock_autospawn_lock_file(c); |