diff options
| author | 2019-05-31 04:46:18 +0000 | |
|---|---|---|
| committer | 2019-05-31 04:46:18 +0000 | |
| commit | dd36ccd07cf22b99e18324a6e1efc9e854d519c1 (patch) | |
| tree | b9b7fa7a7ec98710ebee5845ea05cd95600b789a /sys/kern/kern_fork.c | |
| parent | fix ssh-keysign fd handling problem introduced in r1.304 caused by a typo (diff) | |
| download | wireguard-openbsd-dd36ccd07cf22b99e18324a6e1efc9e854d519c1.tar.xz wireguard-openbsd-dd36ccd07cf22b99e18324a6e1efc9e854d519c1.zip | |
Rename struct plimit field p_refcnt to pl_refcnt to avoid confusion
with the fields of struct proc. Make pl_refcnt unsigned for upcoming
atomic updating.
OK deraadt@ guenther@
Diffstat (limited to 'sys/kern/kern_fork.c')
| -rw-r--r-- | sys/kern/kern_fork.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 578752c75aa..0d7f58bf890 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_fork.c,v 1.209 2019/01/06 12:59:45 visa Exp $ */ +/* $OpenBSD: kern_fork.c,v 1.210 2019/05/31 04:46:18 visa Exp $ */ /* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */ /* @@ -240,7 +240,7 @@ process_new(struct proc *p, struct process *parent, int flags) /* post-copy fixups */ pr->ps_pptr = parent; - pr->ps_limit->p_refcnt++; + pr->ps_limit->pl_refcnt++; if (pr->ps_limit->pl_rlimit[RLIMIT_CPU].rlim_cur != RLIM_INFINITY) timeout_add_msec(&pr->ps_rucheck_to, RUCHECK_INTERVAL); |
