From 09a66e91ec9e8a677aa48f27798753084f213713 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 9 May 2020 17:39:31 +0200 Subject: Replaced fork() with spawn()! Who needs forks anyway --- src/userspace/programs/root.c | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 src/userspace/programs/root.c (limited to 'src/userspace/programs/root.c') diff --git a/src/userspace/programs/root.c b/src/userspace/programs/root.c deleted file mode 100644 index 86b8bf7..0000000 --- a/src/userspace/programs/root.c +++ /dev/null @@ -1,15 +0,0 @@ -#include -#include -#include - -// This process only exists because it can't crash -void main() -{ - if (get_pid() != 1) { - printf("Wrong PID!\n"); - exit(1); - } - - exec("/bin/init"); - printf("The init process crashed!"); -} \ No newline at end of file -- cgit v1.2.3