mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
context: document why we only do minimal cleanups before the autospawn exec()
This commit is contained in:
parent
27b8cd783c
commit
5921324fd3
1 changed files with 4 additions and 1 deletions
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue