fix compilation.

This commit is contained in:
Poul-Henning Kamp 2004-07-13 16:33:38 +00:00
parent 4b5239229c
commit 49bddf0c9f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132111

View File

@ -300,7 +300,7 @@ fork1(td, flags, pages, procp)
*/
sx_xlock(&allproc_lock);
uid = td->td_ucred->cr_ruid;
if ((nprocs >= maxproc - 10 && suser(td->td_ucred) != 0) ||
if ((nprocs >= maxproc - 10 && suser(td) != 0) ||
nprocs >= maxproc) {
error = EAGAIN;
goto fail;