3 ms·
> how do you do that without interfering with other threads >that might do the same You build up a the environment in a local variable, fork(), then have the c
by noselasd 10y ago
> how do you do that without interfering with other threads >that might do the same
You build up a the environment in a local variable, fork(), then have the child alter its environment based on the said local variable before it goes on to do useful stuff.
If you're just executing another program, do the same, but call execle() which takes the environment as an argument.