diff options
| author | Don Lewis <truckman@FreeBSD.org> | 2000-09-14 23:07:39 +0000 |
|---|---|---|
| committer | Don Lewis <truckman@FreeBSD.org> | 2000-09-14 23:07:39 +0000 |
| commit | 42fd51cedcf6469b0b127e0736176639e427cfce (patch) | |
| tree | 91af6eda5c7244e1c780ea1e1a68b3d70e735fde /sys/kern/kern_fork.c | |
| parent | 37a23ef8ee4152ac67ed36fa218b327a54968dc6 (diff) | |
Notes
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 0aa31ab857bc..c3699b20d272 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -253,8 +253,8 @@ fork1(p1, flags, procp) * a nonprivileged user to exceed their current limit. */ ok = chgproccnt(p1->p_cred->p_uidinfo, 1, - p1->p_rlimit[RLIMIT_NPROC].rlim_cur); - if (uid != 0 && !ok) { + (uid != 0) ? p1->p_rlimit[RLIMIT_NPROC].rlim_cur : 0); + if (!ok) { /* * Back out the process count */ |
