Changeset 391 for python/trunk/Doc/library/resource.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/library/resource.rst
r2 r391 43 43 44 44 45 .. data:: RLIM_INFINITY 46 47 Constant used to represent the the limit for an unlimited resource. 48 49 45 50 .. function:: getrlimit(resource) 46 51 … … 54 59 Sets new limits of consumption of *resource*. The *limits* argument must be a 55 60 tuple ``(soft, hard)`` of two integers describing the new limits. A value of 56 ``-1`` can be used to specify the maximum possible upper limit. 61 :data:`~resource.RLIM_INFINITY` can be used to request a limit that is 62 unlimited. 57 63 58 64 Raises :exc:`ValueError` if an invalid resource is specified, if the new soft 59 limit exceeds the hard limit, or if a process tries to raise its hard limit 60 (unless the process has an effective UID of super-user). Can also raise 61 :exc:`error` if the underlying system call fails. 65 limit exceeds the hard limit, or if a process tries to raise its hard limit. 66 Specifying a limit of :data:`~resource.RLIM_INFINITY` when the hard or 67 system limit for that resource is not unlimited will result in a 68 :exc:`ValueError`. A process with the effective UID of super-user can 69 request any valid limit value, including unlimited, but :exc:`ValueError` 70 will still be raised if the requested limit exceeds the system imposed 71 limit. 72 73 ``setrlimit`` may also raise :exc:`error` if the underlying system call 74 fails. 62 75 63 76 These symbols define resources whose consumption can be controlled using the
Note:
See TracChangeset
for help on using the changeset viewer.