From njs3@sprite56.doc.ic.ac.uk  Tue Dec  9 04:02:46 1997
Received: from sprite56.doc.ic.ac.uk (sprite56.doc.ic.ac.uk [146.169.50.56])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id EAA26730
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 9 Dec 1997 04:02:39 -0800 (PST)
          (envelope-from njs3@sprite56.doc.ic.ac.uk)
Received: (from njs3@localhost)
	by sprite56.doc.ic.ac.uk (8.8.7/8.8.7) id MAA27341;
	Tue, 9 Dec 1997 12:03:02 GMT
	(envelope-from njs3)
Message-Id: <199712091203.MAA27341@sprite56.doc.ic.ac.uk>
Date: Tue, 9 Dec 1997 12:03:02 GMT
From: njs3@doc.ic.ac.uk
Reply-To: njs3@doc.ic.ac.uk
To: FreeBSD-gnats-submit@freebsd.org
Subject: fork(2) typo
X-Send-Pr-Version: 3.2

>Number:         5260
>Category:       docs
>Synopsis:       typo in fork(2)
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec  9 04:10:02 PST 1997
>Closed-Date:    Fri Dec 26 08:18:42 PST 1997
>Last-Modified:  Fri Dec 26 08:24:51 PST 1997
>Originator:     Niall Smart
>Release:        FreeBSD 2.2.5-RELEASE i386
>Organization:
None
>Environment:

>Description:

From the ERRORS section of the fork(2) page:

     [EAGAIN]  The user is not the super user, and the soft resource limit
               corresponding to the resource parameter RLIMIT_NOFILE would be
               exceeded (see getrlimit(2)).
	       
Shouldn't RLIMIT_NOFILE read RLIMIT_NPROC?

Regards,

Niall.

>How-To-Repeat:

man 2 fork

>Fix:

*** fork.2~	Tue Dec  9 11:59:59 1997
--- fork.2	Tue Dec  9 12:00:30 1997
***************
*** 108,110 ****
  the soft resource limit corresponding to the resource parameter
! .Dv RLIMIT_NOFILE
  would be exceeded (see
--- 108,110 ----
  the soft resource limit corresponding to the resource parameter
! .Dv RLIMIT_NPROC
  would be exceeded (see
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: hoek 
State-Changed-When: Fri Dec 26 08:18:42 PST 1997 
State-Changed-Why:  
Suggested patch in revs 1.6 and 1.3.2.2.  Thanks! 
>Unformatted:
