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 <[email protected]>
---
 bitbake/bin/toaster | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
index 3b5b7f8..6d1ec05 100755
--- a/bitbake/bin/toaster
+++ b/bitbake/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
-- 
2.1.4

-- 
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Reply via email to