summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorAntoine Pitrou <pitrou@free.fr>2017-06-30 08:01:05 (GMT)
committerGitHub <noreply@github.com>2017-06-30 08:01:05 (GMT)
commit729780a810bbcb12b245a1b652302a601fc9f6fd (patch)
tree98182b9933e15696fbf1dc97364f6e048c219600 /Misc
parent42bc8beadd49f60cc52fdc397897b3bd81640406 (diff)
downloadcpython-729780a810bbcb12b245a1b652302a601fc9f6fd.zip
cpython-729780a810bbcb12b245a1b652302a601fc9f6fd.tar.gz
cpython-729780a810bbcb12b245a1b652302a601fc9f6fd.tar.bz2
bpo-30807: signal.setitimer() may disable the timer by mistake (#2493)
* bpo-30807: signal.setitimer() may disable the timer by mistake * Add NEWS blurb
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2017-06-29-22-04-44.bpo-30807.sLtjY-.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2017-06-29-22-04-44.bpo-30807.sLtjY-.rst b/Misc/NEWS.d/next/Library/2017-06-29-22-04-44.bpo-30807.sLtjY-.rst
new file mode 100644
index 0000000..ce6f48a
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2017-06-29-22-04-44.bpo-30807.sLtjY-.rst
@@ -0,0 +1,6 @@
+signal.setitimer() may disable the timer when passed a tiny value.
+
+Tiny values (such as 1e-6) are valid non-zero values for setitimer(), which
+is specified as taking microsecond-resolution intervals. However, on some
+platform, our conversion routine could convert 1e-6 into a zero interval,
+therefore disabling the timer instead of (re-)scheduling it.