[New-bugs-announce] [issue30807] setitimer() can disable timer by mistake

Antoine Pitrou report at bugs.python.org
Thu Jun 29 15:49:10 EDT 2017


New submission from Antoine Pitrou:

The C setitimer() function supports intervals with microsecond resolution.  However, Python's setitimer() takes a float and then converts it to a C `struct timeval`, which can round down to zero.  The consequence is that the timer is disabled (timeval == {0,0}) while the user asked for a one microsecond timeout.

----------
components: Library (Lib)
messages: 297300
nosy: pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: setitimer() can disable timer by mistake
type: behavior
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30807>
_______________________________________


More information about the New-bugs-announce mailing list