代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/rpm 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From c6699a7e90acfaa421830ce0fc12940335e40d7b Mon Sep 17 00:00:00 2001
From: shanshishi <shanshishi@huawei.com>
Date: Sun, 19 May 2019 16:49:45 +0800
Subject: [PATCH] rpm: wait once get rpmlock fail
reason: When executing the rpm command concurrently, it will block some
times, because of lock is applied before.
Signed-off-by: shanshishi <shanshishi@huawei.com>
---
lib/rpmlock.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/lib/rpmlock.c b/lib/rpmlock.c
index d693c4b..86e07b3 100644
--- a/lib/rpmlock.c
+++ b/lib/rpmlock.c
@@ -125,13 +125,10 @@ rpmlock rpmlockNew(const char *lock_path, const char *descr)
int rpmlockAcquire(rpmlock lock)
{
int locked = 0; /* assume failure */
- int myerrno = errno;
- int maywait = isatty(STDIN_FILENO); /* dont wait within scriptlets */
- errno = myerrno;
if (lock) {
locked = rpmlock_acquire(lock, RPMLOCK_WRITE);
- if (!locked && (lock->openmode & RPMLOCK_WRITE) && maywait) {
+ if (!locked && (lock->openmode & RPMLOCK_WRITE)) {
rpmlog(RPMLOG_WARNING, _("waiting for %s lock on %s\n"),
lock->descr, lock->path);
locked = rpmlock_acquire(lock, (RPMLOCK_WRITE|RPMLOCK_WAIT));
--
1.7.12.4
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。