summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-03-07 19:27:37 +0000
committerZac Medico <zmedico@gentoo.org>2006-03-07 19:27:37 +0000
commitd6f586195be07a21b0e2ebb12c138c74281d48cb (patch)
treed3e8319ee451934d425b22c51f7edf4b4e2f40df
parent4fa498dee32248291386428d9a64c1f130ec1df5 (diff)
downloadportage-d6f586195be07a21b0e2ebb12c138c74281d48cb.tar.gz
portage-d6f586195be07a21b0e2ebb12c138c74281d48cb.tar.bz2
portage-d6f586195be07a21b0e2ebb12c138c74281d48cb.zip
Make the parallel-fetch process sleep for 3 seconds at the beginning in order to allow the parent process to have the first fetch (rather than display a 'waiting for a lock' message). Suggestion by Brian Harring.
svn path=/main/trunk/; revision=2824
-rwxr-xr-xbin/emerge1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/emerge b/bin/emerge
index f949491a0..7e7d1c4d4 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -1890,6 +1890,7 @@ class depgraph:
sys.stdin.close()
sys.stdout.close()
sys.stderr.close()
+ time.sleep(3) # allow the parent to have first fetch
sys.stdout = open("/dev/null","w")
sys.stderr = open("/dev/null","w")
os.dup2(sys.stdout.fileno(), 1)