summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-08-12 21:40:12 +0200
committerLennart Poettering <lennart@poettering.net>2009-08-12 21:40:12 +0200
commit5921324fd3c16e2b3d38d07b200febd90835f169 (patch)
tree58f592c46b94b6b42fb7ffd8c23baf9fad01fc6b
parent27b8cd783c2aedb23af8f88fc88632d5c4f387fd (diff)
context: document why we only do minimal cleanups before the autospawn exec()
-rw-r--r--src/pulse/context.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pulse/context.c b/src/pulse/context.c
index 7c3717fa..894ab2e0 100644
--- 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";