aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/programs/root.c
diff options
context:
space:
mode:
authorMarvin Borner2020-05-09 17:39:31 +0200
committerMarvin Borner2020-05-09 17:39:31 +0200
commit09a66e91ec9e8a677aa48f27798753084f213713 (patch)
tree9685a13b459e60d830179c565417ed72ae855ebe /src/userspace/programs/root.c
parent3a97fef4bb4780e4bc2423699063d40cbf5da923 (diff)
Replaced fork() with spawn()!
Who needs forks anyway
Diffstat (limited to 'src/userspace/programs/root.c')
-rw-r--r--src/userspace/programs/root.c15
1 files changed, 0 insertions, 15 deletions
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 <stdio.h>
-#include <syscall.h>
-#include <unistd.h>
-
-// 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