Skip to content

Commit 7405367

Browse files
Flowdalicthesamesam
authored andcommitted
locks: Drop comment regarding sleep() call
The call was added with 78b1ba8 in 2004 and later commented out with 989d520f6ef6 in 2004 (both from portage-cvs.git). It should be safe to say that it did not prove necessary, so let's remove it. Signed-off-by: Florian Schmaus <[email protected]> Closes: #1418 Signed-off-by: Sam James <[email protected]>
1 parent 2ccc673 commit 7405367

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/portage/locks.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -549,12 +549,6 @@ def unlockfile(mytuple):
549549
raise OSError(_("Failed to unlock file '%s'\n") % lockfilename)
550550

551551
try:
552-
# This sleep call was added to allow other processes that are
553-
# waiting for a lock to be able to grab it before it is deleted.
554-
# lockfile() already accounts for this situation, however, and
555-
# the sleep here adds more time than is saved overall, so am
556-
# commenting until it is proved necessary.
557-
# time.sleep(0.0001)
558552
if unlinkfile:
559553
locking_method(myfd, fcntl.LOCK_EX | fcntl.LOCK_NB)
560554
# We won the lock, so there isn't competition for it.

0 commit comments

Comments
 (0)