From: notaz Date: Sat, 16 Jan 2016 15:10:52 +0000 (+0200) Subject: unset ld env before running command X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;p=ginge.git unset ld env before running command suggested by Hooka --- diff --git a/loader/host.c b/loader/host.c index 9532347..0ac1de4 100644 --- a/loader/host.c +++ b/loader/host.c @@ -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);