aboutsummaryrefslogtreecommitdiff
path: root/src/shared
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/shared
parent3a97fef4bb4780e4bc2423699063d40cbf5da923 (diff)
Replaced fork() with spawn()!
Who needs forks anyway
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/common.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/common.h b/src/shared/common.h
index 3f2904c..4f6814c 100644
--- a/src/shared/common.h
+++ b/src/shared/common.h
@@ -4,10 +4,10 @@
// Syscalls
#define SYS_HALT 0 // Halt (debug)
#define SYS_EXIT 1 // Exit process
-#define SYS_FORK 2 // Fork process
-#define SYS_READ 3 // Read file
-#define SYS_WRITE 4 // Write file
-#define SYS_EXEC 5 // Execute file
+#define SYS_READ 2 // Read file
+#define SYS_WRITE 3 // Write file
+#define SYS_EXEC 4 // Execute file and kill parent
+#define SYS_SPAWN 5 // Execute file and let parent alive
#define SYS_WAIT 6 // Wait for PID
#define SYS_GET_PID 7 // Get process id
#define SYS_MALLOC 8 // Allocate memory