From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernhard Bitsch To: development@lists.ipfire.org Subject: Re: Stale pakfire lock-file causing pakfire to no longer work Date: Thu, 15 Sep 2022 13:48:42 +0200 Message-ID: <5d1bd063-7a35-03ff-42c6-5af63a5ac0fb@ipfire.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5994180399831092795==" List-Id: --===============5994180399831092795== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi all, as an 'old real time programmer' this reminds me deeply at Dijkstra/Hoare's "Dining philosophers problem". The check for presence of the lockfile and the generation of it are not 'atomic'. Means two programs can run in parallel. I'll investigate this further. But the deletion of the lock should happen anyways, as far I've seen till now. Regards, Bernhard --===============5994180399831092795==--