summaryrefslogtreecommitdiff
path: root/userspace
diff options
context:
space:
mode:
Diffstat (limited to 'userspace')
-rw-r--r--userspace/Makefile1
-rw-r--r--userspace/foolshell.c2
-rw-r--r--userspace/sys/Makefile4
3 files changed, 5 insertions, 2 deletions
diff --git a/userspace/Makefile b/userspace/Makefile
index 2434008..86c221e 100644
--- a/userspace/Makefile
+++ b/userspace/Makefile
@@ -6,6 +6,7 @@ CFLAGS+=-I..
CFLAGS+=-w
CFLAGS+=-std=gnu11
CFLAGS+=-O3
+CFLAGS+=-g
PROGS=foolshell ls simple brainfuck add checker clear task1 task2 init
diff --git a/userspace/foolshell.c b/userspace/foolshell.c
index d44204c..3a87158 100644
--- a/userspace/foolshell.c
+++ b/userspace/foolshell.c
@@ -229,7 +229,7 @@ int process(char *buf)
exit(1);
}
int status;
- wait(&status);
+ if(strcmp(token[1],"branch"))wait(&status);
}
return 0;
diff --git a/userspace/sys/Makefile b/userspace/sys/Makefile
index e341312..5e217fa 100644
--- a/userspace/sys/Makefile
+++ b/userspace/sys/Makefile
@@ -1,5 +1,7 @@
CC=i686-foolos-gcc
-CFLAGS=-I../..
+
+CFLAGS=
+CFLAGS+=-I../..
CFLAGS+=-w