diff options
author | 2001-03-23 18:42:06 +0000 | |
---|---|---|
committer | 2001-03-23 18:42:06 +0000 | |
commit | 9dc70864756380a8a893d1670edabaa78fb35384 (patch) | |
tree | 6bb5fed8716cfd972d3c46c8c331e6b6f3560f2d /sys/kern/kern_fork.c | |
parent | Fix pagemove to work with PMAP_NEW. Mostly from NetBSD. (diff) | |
download | wireguard-openbsd-9dc70864756380a8a893d1670edabaa78fb35384.tar.xz wireguard-openbsd-9dc70864756380a8a893d1670edabaa78fb35384.zip |
Use pool to allocate processes.
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r-- | sys/kern/kern_fork.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index e7fbaae0a56..3179f7b07ae 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_fork.c,v 1.37 2001/02/13 21:00:48 art Exp $ */ +/* $OpenBSD: kern_fork.c,v 1.38 2001/03/23 18:42:06 art Exp $ */ /* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */ /* @@ -56,6 +56,7 @@ #include <sys/ktrace.h> #include <sys/sched.h> #include <dev/rndvar.h> +#include <sys/pool.h> #include <sys/syscallargs.h> @@ -195,7 +196,7 @@ fork1(p1, flags, stack, stacksize, retval) return ENOMEM; /* Allocate new proc. */ - MALLOC(newproc, struct proc *, sizeof(struct proc), M_PROC, M_WAITOK); + newproc = pool_get(&proc_pool, PR_WAITOK); lastpid++; if (randompid) |