diff options
author | Ian Moffett <ian@osmora.org> | 2024-08-12 22:05:00 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-08-12 22:13:46 -0400 |
commit | 8970ddd9be6c013ff8cae2b1872f65348c7ded54 (patch) | |
tree | 8fa83fde9cd319ce6ff67b2af052e1a9d7e0d8e9 /sys/kern/kern_fork.c | |
parent | 30cb24fbc5700771208dddb9e5f42d0ae5d7ff38 (diff) |
kernel: Add initial support for signals
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r-- | sys/kern/kern_fork.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 037026b..7bcff4b 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -31,6 +31,7 @@ #include <sys/proc.h> #include <sys/errno.h> #include <sys/sched.h> +#include <sys/signal.h> #include <vm/dynalloc.h> #include <string.h> @@ -64,6 +65,7 @@ fork1(struct proc *cur, int flags, void(*ip)(void), struct proc **newprocp) *newprocp = newproc; newproc->pid = ++nthreads; + signals_init(newproc); sched_enqueue_td(newproc); done: if (status != 0) |