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/shared/common.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/shared') 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 -- cgit v1.2.3