Created originally on Bitbucket by bdkearns (Brian Kearns)
Was already merged in Bitbucket before import, marked as merged by the import user
Source changeset not longer availableat the time of import. Commit listwill look empty
- removed duplicated code
- 'if len:' line is bogus, variable is named length, plus these ifs are unnecessary as vars default to zero
- lockf ignored return value (fixes https://bugs.pypy.org/issue747)
- tests now actually test a lock being blocked
- attempt to fix test_ioctl test failure