e start - use static env vars when they are actually static

this avoids any possible leaks from these and uses less heap.
This commit is contained in:
Carsten Haitzler 2019-06-04 07:14:01 +01:00
parent d798b9ea83
commit b0fcdf1759
1 changed files with 2 additions and 2 deletions

View File

@ -600,7 +600,7 @@ main(int argc, char **argv)
prefix_determine(argv[0]);
env_set("E_START", argv[0]);
env_set("E_START_MANAGER", "1");
putenv("E_START_MANAGER=1");
for (i = 1; i < argc; i++)
{
@ -724,7 +724,7 @@ main(int argc, char **argv)
return _e_start_child(args, really_know);
/* in the parent - ptrace attach and continue */
env_set("E_RESTART", "1");
putenv("E_RESTART=1");
_e_ptrace_attach(child, &status, really_know);
/* now loop until done */