summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-06-04 07:14:01 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-06-04 07:14:01 +0100
commitb0fcdf175913a4bb59a12d840156deaf21ef7781 (patch)
treeb327abde45d03af3224eef24afbf84e7f9fb82ed
parentd798b9ea83795dbccb485e575088b69080f6f4d7 (diff)
e start - use static env vars when they are actually static
this avoids any possible leaks from these and uses less heap.
-rw-r--r--src/bin/e_start_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/e_start_main.c b/src/bin/e_start_main.c
index 18d4cebbd..6a762b75a 100644
--- a/src/bin/e_start_main.c
+++ b/src/bin/e_start_main.c
@@ -600,7 +600,7 @@ main(int argc, char **argv)
600 prefix_determine(argv[0]); 600 prefix_determine(argv[0]);
601 601
602 env_set("E_START", argv[0]); 602 env_set("E_START", argv[0]);
603 env_set("E_START_MANAGER", "1"); 603 putenv("E_START_MANAGER=1");
604 604
605 for (i = 1; i < argc; i++) 605 for (i = 1; i < argc; i++)
606 { 606 {
@@ -724,7 +724,7 @@ main(int argc, char **argv)
724 return _e_start_child(args, really_know); 724 return _e_start_child(args, really_know);
725 725
726 /* in the parent - ptrace attach and continue */ 726 /* in the parent - ptrace attach and continue */
727 env_set("E_RESTART", "1"); 727 putenv("E_RESTART=1");
728 _e_ptrace_attach(child, &status, really_know); 728 _e_ptrace_attach(child, &status, really_know);
729 729
730 /* now loop until done */ 730 /* now loop until done */