From a037b89042131a972abfb0474880326ead98aaf5 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 14 Aug 2012 09:36:44 +0200 Subject: [PATCH] xbps-repo: really wait 30 secs max to acquire repo file lock. --- bin/xbps-repo/index-lock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/xbps-repo/index-lock.c b/bin/xbps-repo/index-lock.c index 135508e1..85bfbe5c 100644 --- a/bin/xbps-repo/index-lock.c +++ b/bin/xbps-repo/index-lock.c @@ -71,8 +71,8 @@ acquire_repo_lock(const char *plist, char **plist_lock) if (errno == EAGAIN || errno == EACCES) { if (++try < WAIT_SECONDS) { fprintf(stderr,"Repository index file " - "is busy! retrying in 5 sec...\n"); - sleep(5); + "is busy! retrying in 1 sec...\n"); + sleep(1); continue; } }