summaryrefslogtreecommitdiff
path: root/lib/libc/sys/getrlimit.2
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2004-07-02 23:52:20 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2004-07-02 23:52:20 +0000
commit1a0a934547909744a6a2fa4cfd5b795ec6394f05 (patch)
tree23294a96f715e1e5bc35c1029ec151c90ee95b96 /lib/libc/sys/getrlimit.2
parente37a7c5f5a689c6f1994a879f5fa86066b7aac82 (diff)
Notes
Diffstat (limited to 'lib/libc/sys/getrlimit.2')
-rw-r--r--lib/libc/sys/getrlimit.212
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/sys/getrlimit.2 b/lib/libc/sys/getrlimit.2
index 159989a8929a..1e670836dcf3 100644
--- a/lib/libc/sys/getrlimit.2
+++ b/lib/libc/sys/getrlimit.2
@@ -103,11 +103,13 @@ this defines how far a program's stack segment may be extended.
Stack extension is performed automatically by the system.
.El
.Pp
-A resource limit is specified as a soft limit and a hard limit. When a
+A resource limit is specified as a soft limit and a hard limit.
+When a
soft limit is exceeded a process may receive a signal (for example, if
the cpu time or file size is exceeded), but it will be allowed to
continue execution until it reaches the hard limit (or modifies
-its resource limit). The
+its resource limit).
+The
.Vt rlimit
structure is used to specify the hard and soft limits on a resource,
.Bd -literal -offset indent
@@ -117,7 +119,8 @@ struct rlimit {
};
.Ed
.Pp
-Only the super-user may raise the maximum limits. Other users
+Only the super-user may raise the maximum limits.
+Other users
may only alter
.Fa rlim_cur
within the range from 0 to
@@ -152,7 +155,8 @@ A file I/O operation that would create a file larger that the process'
soft limit will cause the write to fail and a signal
.Dv SIGXFSZ
to be
-generated; this normally terminates the process, but may be caught. When
+generated; this normally terminates the process, but may be caught.
+When
the soft cpu time limit is exceeded, a signal
.Dv SIGXCPU
is sent to the