commit | c24ca4b192559526797d0410bf3cee2fecaaddf5 | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Fri Mar 24 20:35:20 2000 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Fri Mar 24 20:35:20 2000 +0000 |
tree | 188282d0d074c20c7bd2da67e33025cdcae82dca | |
parent | 70b5d47f71dc233d13ae40e214be24472b8c58af [diff] |
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.