diff options
author | Antoine Pitrou <pitrou@free.fr> | 2017-06-30 08:54:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-30 08:54:24 (GMT) |
commit | 6f3cb059fd1f3a57ffd70c9d54a394a85a6ea13d (patch) | |
tree | ee380bf0b0e1f1b4071ddb4fbbf84498f52d077c /Misc | |
parent | 6f31717c47e325460e2a661bf44b45d342d65bcb (diff) | |
download | cpython-6f3cb059fd1f3a57ffd70c9d54a394a85a6ea13d.zip cpython-6f3cb059fd1f3a57ffd70c9d54a394a85a6ea13d.tar.gz cpython-6f3cb059fd1f3a57ffd70c9d54a394a85a6ea13d.tar.bz2 |
[3.6] bpo-30807: signal.setitimer() may disable the timer by mistake (GH-2493) (#2497)
* bpo-30807: signal.setitimer() may disable the timer by mistake
* Add NEWS blurb
(cherry picked from commit 729780a810bbcb12b245a1b652302a601fc9f6fd)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2017-06-29-22-04-44.bpo-30807.sLtjY-.rst | 6 |
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. |