From 1042f1e7ceb0f1df79cc981656eef5fb4dbc4009 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Sun, 29 Jan 2006 16:53:16 +0000 Subject: [PATCH] removed unlock code from alpm_release() --- lib/libalpm/alpm.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index 09f8f707..c3f55df1 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -93,16 +93,6 @@ int alpm_release() ASSERT(handle != NULL, RET_ERR(PM_ERR_HANDLE_NULL, -1)); - /* unlock db */ - if(handle->lckfd != -1) { - close(handle->lckfd); - handle->lckfd = -1; - } - if(_alpm_lckrm(PM_LOCK) == -1) { - _alpm_log(PM_LOG_WARNING, "could not remove lock file %s", PM_LOCK); - alpm_logaction("warning: could not remove lock file %s", PM_LOCK); - } - /* close local database */ if(handle->db_local) { db_close(handle->db_local);