[bitbake-devel] [PATCH 27/30] toaster: unset environment variables
brian avery
avery.brian at gmail.com
Wed Dec 2 18:02:59 UTC 2015
From: Ed Bartosh <ed.bartosh at linux.intel.com>
Toaster script sets environment variables when it starts.
It makes sense to unset them when toaster stops as they can
cause other programs to behave incorrectly.
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
Signed-off-by: brian avery <avery.brian at gmail.com>
---
bin/toaster | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/bin/toaster b/bin/toaster
index 3b5b7f8..6d1ec05 100755
--- a/bin/toaster
+++ b/bin/toaster
@@ -128,6 +128,10 @@ stop_system()
fi
stop_bitbake
webserverKillAll
+ # unset exported variables
+ unset DATABASE_URL
+ unset TOASTER_CONF
+ unset TOASTER_DIR
trap - SIGHUP
#trap - SIGCHLD
INSTOPSYSTEM=0
--
1.9.1
More information about the bitbake-devel
mailing list