summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-09-29 17:47:46 +0000
committerbde <bde@FreeBSD.org>1996-09-29 17:47:46 +0000
commitb6663b85bfad73a3e1ca3a2d88886d729cae324f (patch)
treecb5ebc6d822a83fee057cf66c27a10c307fba9ad /lib
parent20976a339124b3996073f1e5df6712d053fe0bb0 (diff)
downloadFreeBSD-src-b6663b85bfad73a3e1ca3a2d88886d729cae324f.zip
FreeBSD-src-b6663b85bfad73a3e1ca3a2d88886d729cae324f.tar.gz
Updated the descriptions of the limits related to EAGAIN.
Changed the error name width for rfork to match fork.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/fork.222
-rw-r--r--lib/libc/sys/rfork.224
2 files changed, 37 insertions, 9 deletions
diff --git a/lib/libc/sys/fork.2 b/lib/libc/sys/fork.2
index b8d465a..e4bb7ef 100644
--- a/lib/libc/sys/fork.2
+++ b/lib/libc/sys/fork.2
@@ -88,13 +88,27 @@ will fail and no child process will be created if:
.It Bq Er EAGAIN
The system-imposed limit on the total
number of processes under execution would be exceeded.
-This limit is configuration-dependent.
+The limit is given by the
+.Xr sysctl 3
+MIB variable
+.Dv KERN_MAXPROC .
+(The limit is actually one less than this
+except for the super user).
.It Bq Er EAGAIN
-The system-imposed limit
-.Dv MAXUPRC
-.Pq Aq Pa sys/param.h
+The user is not the super user, and
+the system-imposed limit
on the total number of
processes under execution by a single user would be exceeded.
+The limit is given by the
+.Xr sysctl 3
+MIB variable
+.Dv KERN_MAXPROCPERUID .
+.It Bq Er EAGAIN
+The user is not the super user, and
+the soft resource limit corresponding to the resource parameter
+.Dv RLIMIT_NOFILE
+would be exceeded (see
+.Xr getrlimit 2 ) .
.It Bq Er ENOMEM
There is insufficient swap space for the new process.
.El
diff --git a/lib/libc/sys/rfork.2 b/lib/libc/sys/rfork.2
index 9b43bd4..c41b89b 100644
--- a/lib/libc/sys/rfork.2
+++ b/lib/libc/sys/rfork.2
@@ -84,17 +84,31 @@ but isn't for backwards compatibility.
.Sh ERRORS
.Fn Rfork
will fail and no child process will be created if:
-.Bl -tag -width Er
+.Bl -tag -width [EAGAIN]
.It Bq Er EAGAIN
The system-imposed limit on the total
number of processes under execution would be exceeded.
-This limit is configuration-dependent.
+The limit is given by the
+.Xr sysctl 3
+MIB variable
+.Dv KERN_MAXPROC .
+(The limit is actually one less than this
+except for the super user).
.It Bq Er EAGAIN
-The system-imposed limit
-.Dv MAXUPRC
-.Pq Aq Pa sys/param.h
+The user is not the super user, and
+the system-imposed limit
on the total number of
processes under execution by a single user would be exceeded.
+The limit is given by the
+.Xr sysctl 3
+MIB variable
+.Dv KERN_MAXPROCPERUID .
+.It Bq Er EAGAIN
+The user is not the super user, and
+the soft resource limit corresponding to the resource parameter
+.Dv RLIMIT_NOFILE
+would be exceeded (see
+.Xr getrlimit 2 ) .
.It Bq Er EINVAL
The RFPROC flag was not specified.
.It Bq Er EINVAL
OpenPOWER on IntegriCloud