notaz.gp2x.de
/
ginge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7510900
)
unset ld env before running command
master
github/master
author
notaz
<notasas@gmail.com>
Sat, 16 Jan 2016 15:10:52 +0000
(17:10 +0200)
committer
notaz
<notasas@gmail.com>
Sat, 16 Jan 2016 15:10:52 +0000
(17:10 +0200)
suggested by Hooka
loader/host.c
patch
|
blob
|
blame
|
history
diff --git
a/loader/host.c
b/loader/host.c
index
9532347
..
0ac1de4
100644
(file)
--- 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) {
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);
snprintf(cmd, sizeof(cmd), "killall %s", g_argv[0]);
system(cmd);
usleep(300000);