notaz.gp2x.de
/
ginge.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
support ancient toolchains
[ginge.git]
/
loader
/
tools
/
static.c
diff --git
a/loader/tools/static.c
b/loader/tools/static.c
index
257a147
..
3475228
100644
(file)
--- a/
loader/tools/static.c
+++ b/
loader/tools/static.c
@@
-8,6
+8,7
@@
#include <sys/ioctl.h>
#include <signal.h>
#include <termios.h>
#include <sys/ioctl.h>
#include <signal.h>
#include <termios.h>
+#include <unistd.h>
static int open_(const char *name)
{
static int open_(const char *name)
{
@@
-41,6
+42,13
@@
int main(int argc, char *argv[])
ioctl(-1, 0);
signal(7, SIG_DFL);
ioctl(-1, 0);
signal(7, SIG_DFL);
+ system("buhbuh");
+ execl("bah", "bah", NULL);
+ execlp("bah", "bah", NULL);
+ if (argc == 1000)
+ fork();
+ chdir("wuhahaha!");
+ usleep(1);
// tcgetattr(-1, NULL);
// tcsetattr(-1, 0, NULL);
// tcgetattr(-1, NULL);
// tcsetattr(-1, 0, NULL);