exec: fix a race condition when setting environment variables
authorMichael Kaufmann <mail@michael-kaufmann.ch>
Thu, 11 Apr 2019 16:14:22 +0000 (18:14 +0200)
committerMichael Kaufmann <mail@michael-kaufmann.ch>
Thu, 3 Oct 2019 09:13:05 +0000 (11:13 +0200)
Pass the environment as a parameter to the child process
and don't modify the environment of the parent process.

Follow-up to 0684aea7

Closes #3041


No differences found