From 58b184b441ff53c46cbb38eb695933d60c6624ad Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 13 Sep 2010 00:23:34 -0700 Subject: Bug #336142 - Add support for using a thread to wait for locks inside dblink.lockdb() so that the scheduler can concurrently service ipc calls in the main thread. --- pym/portage/locks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pym/portage/locks.py') diff --git a/pym/portage/locks.py b/pym/portage/locks.py index ed20e30ca..00a50b818 100644 --- a/pym/portage/locks.py +++ b/pym/portage/locks.py @@ -30,8 +30,8 @@ HARDLINK_FD = -2 # so that it doesn't interfere with the status display. _quiet = False -def lockdir(mydir): - return lockfile(mydir,wantnewlockfile=1) +def lockdir(mydir, flags=0): + return lockfile(mydir, wantnewlockfile=1, flags=flags) def unlockdir(mylock): return unlockfile(mylock) -- cgit v1.2.3-1-g7c22