Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
bdf940d3
Kaydet (Commit)
bdf940d3
authored
Nis 20, 2013
tarafından
R David Murray
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#17409: Document RLIM_INFINITY and use it to clarify the setrlimit docs.
üst
3583761b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
resource.rst
Doc/library/resource.rst
+17
-4
No files found.
Doc/library/resource.rst
Dosyayı görüntüle @
bdf940d3
...
@@ -43,6 +43,11 @@ which cannot be checked or controlled by the operating system are not defined in
...
@@ -43,6 +43,11 @@ which cannot be checked or controlled by the operating system are not defined in
this module for those platforms.
this module for those platforms.
.. data:: RLIM_INFINITY
Constant used to represent the the limit for an unlimited resource.
.. function:: getrlimit(resource)
.. function:: getrlimit(resource)
Returns a tuple ``(soft, hard)`` with the current soft and hard limits of
Returns a tuple ``(soft, hard)`` with the current soft and hard limits of
...
@@ -54,12 +59,20 @@ this module for those platforms.
...
@@ -54,12 +59,20 @@ this module for those platforms.
Sets new limits of consumption of *resource*. The *limits* argument must be a
Sets new limits of consumption of *resource*. The *limits* argument must be a
tuple ``(soft, hard)`` of two integers describing the new limits. A value of
tuple ``(soft, hard)`` of two integers describing the new limits. A value of
``-1`` can be used to specify the maximum possible upper limit.
:data:`~resource.RLIM_INFINITY` can be used to request a limit that is
unlimited.
Raises :exc:`ValueError` if an invalid resource is specified, if the new soft
Raises :exc:`ValueError` if an invalid resource is specified, if the new soft
limit exceeds the hard limit, or if a process tries to raise its hard limit
limit exceeds the hard limit, or if a process tries to raise its hard limit.
(unless the process has an effective UID of super-user). Can also raise
Specifying a limit of :data:`~resource.RLIM_INFINITY` when the hard or
:exc:`error` if the underlying system call fails.
system limit for that resource is not unlimited will result in a
:exc:`ValueError`. A process with the effective UID of super-user can
request any valid limit value, including unlimited, but :exc:`ValueError`
will still be raised if the requested limit exceeds the system imposed
limit.
``setrlimit`` may also raise :exc:`error` if the underlying system call
fails.
These symbols define resources whose consumption can be controlled using the
These symbols define resources whose consumption can be controlled using the
:func:`setrlimit` and :func:`getrlimit` functions described below. The values of
:func:`setrlimit` and :func:`getrlimit` functions described below. The values of
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment