From d8331335ff1720ce28eba45afe1a02814b38b033 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Mon, 1 Dec 2014 21:49:22 +0100 Subject: finally implemented fork() syscall --- userspace/init.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 userspace/init.c (limited to 'userspace/init.c') diff --git a/userspace/init.c b/userspace/init.c new file mode 100644 index 0000000..d03d173 --- /dev/null +++ b/userspace/init.c @@ -0,0 +1,14 @@ +int main(int argc, char **argv) +{ + printf("Fool OS Init 0.1 \n"); + + int pid=fork(); + + while(1) + { + printf("I am pid: %i\n",pid); + } + return 0; +} + + -- cgit v1.2.3