Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/library/resource.rst

    r2 r391  
    4343
    4444
     45.. data:: RLIM_INFINITY
     46
     47   Constant used to represent the the limit for an unlimited resource.
     48
     49
    4550.. function:: getrlimit(resource)
    4651
     
    5459   Sets new limits of consumption of *resource*. The *limits* argument must be a
    5560   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.
    5763
    5864   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.
    6275
    6376These symbols define resources whose consumption can be controlled using the
Note: See TracChangeset for help on using the changeset viewer.