unset ld env before running command master github/master
authornotaz <notasas@gmail.com>
Sat, 16 Jan 2016 15:10:52 +0000 (17:10 +0200)
committernotaz <notasas@gmail.com>
Sat, 16 Jan 2016 15:10:52 +0000 (17:10 +0200)
suggested by Hooka

loader/host.c

index 9532347..0ac1de4 100644 (file)
@@ -138,6 +138,9 @@ void host_forced_exit(int status)
   printf("forced exit...\n");
 
   if (g_argv != NULL) {
+    unsetenv("LD_PRELOAD");
+    unsetenv("LD_LIBRARY_PATH");
+
     snprintf(cmd, sizeof(cmd), "killall %s", g_argv[0]);
     system(cmd);
     usleep(300000);