]> granicus.if.org Git - python/commit
Fix probable bug; if errno == EINTR, floatsleep() doesn't break out of
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 24 Mar 2000 20:35:20 +0000 (20:35 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 24 Mar 2000 20:35:20 +0000 (20:35 +0000)
commitc24ca4b192559526797d0410bf3cee2fecaaddf5
tree188282d0d074c20c7bd2da67e33025cdcae82dca
parent70b5d47f71dc233d13ae40e214be24472b8c58af
Fix probable bug; if errno == EINTR, floatsleep() doesn't break out of
   a Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS block, but it
   calls Py_BLOCK_THREADS anyway. The change moves Py_BLOCK_THREADS
   to inside the if, so it's only executed when the function
   actually returns unexpectedly.
Modules/timemodule.c