diff options
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/proc.c | 2 | ||||
-rw-r--r-- | src/kernel/proc.h | 2 | ||||
-rw-r--r-- | src/kernel/syscalls.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/proc.c b/src/kernel/proc.c index 991ab78..02826d8 100644 --- a/src/kernel/proc.c +++ b/src/kernel/proc.c @@ -30,7 +30,7 @@ struct process *process_seed() { return proc; } -struct process *process_clone(struct process *parent) { +struct process *process_fork(struct process *parent) { struct process *child = kmalloc(sizeof(struct process)); memcpy(child, parent, sizeof(struct process)); diff --git a/src/kernel/proc.h b/src/kernel/proc.h index b2a05c0..05ab66a 100644 --- a/src/kernel/proc.h +++ b/src/kernel/proc.h @@ -21,7 +21,7 @@ extern struct process *process_current; // creates the root process struct process *process_seed(); -struct process *process_clone(struct process *orig); +struct process *process_fork(struct process *parent); _Noreturn void process_switch(struct process *proc); struct process *process_find(enum process_state); diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index 7d0f81f..e160270 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -18,7 +18,7 @@ _Noreturn void _syscall_exit(const char *msg, size_t len) { int _syscall_fork() { struct process *orig = process_current; - process_current = process_clone(orig); + process_current = process_fork(orig); process_switch(process_current); } |