summaryrefslogtreecommitdiff
path: root/usrbin
diff options
context:
space:
mode:
Diffstat (limited to 'usrbin')
-rw-r--r--usrbin/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usrbin/main.c b/usrbin/main.c
index c4a257c..f05cb84 100644
--- a/usrbin/main.c
+++ b/usrbin/main.c
@@ -1,7 +1,9 @@
#include <errno.h>
+#include <kernel/fs.h>
#include <signal.h>
#include <stdint.h>
#include <stdio.h>
+#include <string.h>
#include <time.h>
#include <unistd.h>
@@ -16,7 +18,7 @@ void pid1(void) {
printf("We did it ma!\n");
signal(1, &sighandler);
- while(1) {
+ for(;;) {
in = read(STDIN_FILENO, buf, 1);
if(in < 1) {
if(in == -EINTR) {
@@ -41,7 +43,7 @@ void pid2(void) {
printf("We did it ma!\n");
- while(1) {
+ for(;;) {
sleep(1);
if(time() == 2)
kill(1, 1);