summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-10-13 20:49:43 (GMT)
committerGitHub <noreply@github.com>2017-10-13 20:49:43 (GMT)
commitef611c96eab0ab667ebb43fdf429b319f6d99890 (patch)
tree39623a7ea31b55dc13dfc2a5d3955ff7ae77e537 /Doc/library
parenta505ecdc5013cd8f930aacc1ec4fb2afa62d3853 (diff)
downloadcpython-ef611c96eab0ab667ebb43fdf429b319f6d99890.zip
cpython-ef611c96eab0ab667ebb43fdf429b319f6d99890.tar.gz
cpython-ef611c96eab0ab667ebb43fdf429b319f6d99890.tar.bz2
bpo-30807: signal.setitimer() now uses _PyTime API (GH-3865)
The _PyTime API handles detects overflow and is well tested. Document that the signal will only be sent once if internal is equal to zero.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/signal.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/signal.rst b/Doc/library/signal.rst
index 46d71de..2bc39d9 100644
--- a/Doc/library/signal.rst
+++ b/Doc/library/signal.rst
@@ -273,13 +273,14 @@ The :mod:`signal` module defines the following functions:
.. versionadded:: 3.3
-.. function:: setitimer(which, seconds[, interval])
+.. function:: setitimer(which, seconds, interval=0.0)
Sets given interval timer (one of :const:`signal.ITIMER_REAL`,
:const:`signal.ITIMER_VIRTUAL` or :const:`signal.ITIMER_PROF`) specified
by *which* to fire after *seconds* (float is accepted, different from
- :func:`alarm`) and after that every *interval* seconds. The interval
- timer specified by *which* can be cleared by setting seconds to zero.
+ :func:`alarm`) and after that every *interval* seconds (if *interval*
+ is non-zero). The interval timer specified by *which* can be cleared by
+ setting *seconds* to zero.
When an interval timer fires, a signal is sent to the process.
The signal sent is dependent on the timer being used;