mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
daemon: clean up environment when forking off children
This commit is contained in:
parent
5f929963d1
commit
a8c0f65fae
2 changed files with 10 additions and 2 deletions
|
|
@ -86,6 +86,11 @@ int pa_start_child_for_read(const char *name, const char *argv1, pid_t *pid) {
|
|||
pa_reset_sigs(-1);
|
||||
pa_unblock_sigs(-1);
|
||||
pa_reset_priority();
|
||||
pa_unset_env_recorded();
|
||||
|
||||
/* Make sure our children are not influenced by the
|
||||
* LD_BIND_NOW we set for ourselves. */
|
||||
unsetenv("LD_BIND_NOW");
|
||||
|
||||
#ifdef PR_SET_PDEATHSIG
|
||||
/* On Linux we can use PR_SET_PDEATHSIG to have the helper
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue