summaryrefslogtreecommitdiffstats
path: root/src/pulsecore
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-09-02 00:42:54 +0200
committerLennart Poettering <lennart@poettering.net>2009-09-02 00:42:54 +0200
commita8c0f65faecd7058de3bd704ed90985ae2c842f0 (patch)
treedb5571ea2832ea488ec5057c07f02262dd17c503 /src/pulsecore
parent5f929963d12c70193a923d620177125d8608f18a (diff)
daemon: clean up environment when forking off children
Diffstat (limited to 'src/pulsecore')
-rw-r--r--src/pulsecore/start-child.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pulsecore/start-child.c b/src/pulsecore/start-child.c
index b3bce131..4a70aea1 100644
--- a/src/pulsecore/start-child.c
+++ b/src/pulsecore/start-child.c
@@ -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