projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27b8cd7
)
context: document why we only do minimal cleanups before the autospawn exec()
author
Lennart Poettering
<lennart@poettering.net>
Wed, 12 Aug 2009 19:40:12 +0000
(21:40 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 12 Aug 2009 19:40:12 +0000
(21:40 +0200)
src/pulse/context.c
patch
|
blob
|
history
diff --git
a/src/pulse/context.c
b/src/pulse/context.c
index
7c3717f
..
894ab2e
100644
(file)
--- a/
src/pulse/context.c
+++ b/
src/pulse/context.c
@@
-707,10
+707,13
@@
static int context_autospawn(pa_context *c) {
if (c->spawn_api.atfork)
c->spawn_api.atfork();
+ /* We leave most of the cleaning up of the process environment
+ * to the executable. We only clean up the file descriptors to
+ * make sure the executable can actually be loaded
+ * correctly. */
pa_close_all(-1);
/* Setup argv */
-
argv[n++] = c->conf->daemon_binary;
argv[n++] = "--start";