notaz.gp2x.de
/
ginge.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix controls regression on _dyn
[ginge.git]
/
loader
/
host.c
diff --git
a/loader/host.c
b/loader/host.c
index
546839c
..
7df4f10
100644
(file)
--- a/
loader/host.c
+++ b/
loader/host.c
@@
-15,6
+15,11
@@
#include "header.h"
#include "realfuncs.h"
#include "header.h"
#include "realfuncs.h"
+// must be affected by realfuncs.h
+#include "../common/libpicofe/input.c"
+#include "../common/libpicofe/linux/plat.c"
+#include "../common/libpicofe/linux/in_evdev.c"
+
#ifdef PND
#include "host_pnd.c"
#elif defined(WIZ)
#ifdef PND
#include "host_pnd.c"
#elif defined(WIZ)
@@
-48,9
+53,15
@@
void host_forced_exit(void)
// exit() might not be enough because loader and app data is out of sync,
// and other threads (which are really processes on this old glibc used)
// might not exit properly.
// exit() might not be enough because loader and app data is out of sync,
// and other threads (which are really processes on this old glibc used)
// might not exit properly.
- system("killall ginge_sloader");
+ char cmd[64];
+
+ printf("forced exit...\n");
+
+ snprintf(cmd, sizeof(cmd), "killall %s", g_argv[0]);
+ system(cmd);
usleep(300000);
usleep(300000);
- system("killall -9 ginge_sloader");
+ snprintf(cmd, sizeof(cmd), "killall -9 %s", g_argv[0]);
+ system(cmd);
exit(1);
}
exit(1);
}