diff options
| author | 2007-04-12 22:14:15 +0000 | |
|---|---|---|
| committer | 2007-04-12 22:14:15 +0000 | |
| commit | e17acf5675eccdc838b1dec9c98991221a92f6b0 (patch) | |
| tree | 4bbb1da46b87d5d108cbf35546ac89cc5a7c9091 /sys/kern/init_main.c | |
| parent | Remove the i_interlock simplelock from struct ntnode (diff) | |
| download | wireguard-openbsd-e17acf5675eccdc838b1dec9c98991221a92f6b0.tar.xz wireguard-openbsd-e17acf5675eccdc838b1dec9c98991221a92f6b0.zip | |
move p_limit and p_cred into struct process
leave macros behind for now to keep the commit small
ok art beck miod pedro
Diffstat (limited to 'sys/kern/init_main.c')
| -rw-r--r-- | sys/kern/init_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 01dd7faa856..a8cf415a9df 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_main.c,v 1.138 2007/04/03 08:05:43 art Exp $ */ +/* $OpenBSD: init_main.c,v 1.139 2007/04/12 22:14:15 tedu Exp $ */ /* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */ /* @@ -303,7 +303,7 @@ main(void *framep) TAILQ_INIT(&p->p_selects); /* Create the limits structures. */ - p->p_limit = &limit0; + p->p_p->ps_limit = &limit0; for (i = 0; i < sizeof(p->p_rlimit)/sizeof(p->p_rlimit[0]); i++) limit0.pl_rlimit[i].rlim_cur = limit0.pl_rlimit[i].rlim_max = RLIM_INFINITY; |
