]> code.delx.au - pulseaudio/blobdiff - src/pulse/context.c
context: document why we only do minimal cleanups before the autospawn exec()
[pulseaudio] / src / pulse / context.c
index 7c3717fa8f6c424aaf2e5af5cf8ecfc7ba7e390a..894ab2e0f964e157f2d7b54919d8ac9a09a01184 100644 (file)
@@ -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";