summaryrefslogtreecommitdiff
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c2
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)