[Bug #1512163] Use one set of locking methods, lockf();
commit97d7588c9ffdf203459b1aa03980fecdca53b8ed
authorandrew.kuchling <andrew.kuchling@6015fed2-1504-0410-9fe1-9d1591cc4771>
Mon, 26 Jun 2006 13:12:16 +0000 (26 13:12 +0000)
committerandrew.kuchling <andrew.kuchling@6015fed2-1504-0410-9fe1-9d1591cc4771>
Mon, 26 Jun 2006 13:12:16 +0000 (26 13:12 +0000)
tree2c6e041ce96bbb1ea8e74af4c9ed5bbdb3c2126e
parente19d73b7eea8a01d4fc07ad81a42d9c331a6efd6
[Bug #1512163] Use one set of locking methods, lockf();
remove the flock() calls.

On FreeBSD, the two methods lockf() and flock() end up using the same
mechanism and the second one fails.  A Linux man page claims that the
two methods are orthogonal (so locks acquired one way don't interact
with locks acquired the other way) but that clearly must be false.

git-svn-id: http://svn.python.org/projects/python/trunk@47100 6015fed2-1504-0410-9fe1-9d1591cc4771
Lib/mailbox.py