public inbox for goredo-devel@lists.stargrave.org
Atom feed
From: Sergey Matveev <stargrave@stargrave•org>
To: goredo-devel@lists.cypherpunks.su
Subject: Re: Self-cycle not detected in goredo
Date: Sun, 25 Jan 2026 13:37:28 +0300 [thread overview]
Message-ID: <aXXydD-jbIkcArF5@stargrave.org> (raw)
In-Reply-To: <845020ec-879b-4f17-95a4-b784c7f192d7@jnboehm.com>
[-- Attachment #1: Type: text/plain, Size: 794 bytes --]
Greetings!
*** Niklas Böhm [2026-01-24 14:21]:
>this is something small that I accidentally come across from time-to-time.
>If you have a do file that `redo-ifchange`s itself, then the execution would
>simply stall.
Yes, it try to take a lock on .redo/tgt.lock file, which is already
locked at the very beginning of running tgt. Deadlock occurs.
>I think it would be a nice and small improvement if it would
>instead produce an error, since that is a cycle in the dependency graph.
Currently I do not know how to detect those deadlocks by not
implementing the deadlock-detection algorithm and track all
locks. All of that is definitely not a small improvement.
--
Sergey Matveev (http://www.stargrave.org/)
LibrePGP: 12AD 3268 9C66 0D42 6967 FD75 CB82 0563 2107 AD8A
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 265 bytes --]
prev parent reply other threads:[~2026-01-25 10:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-24 13:21 Self-cycle not detected in goredo Niklas Böhm
2026-01-25 10:37 ` Sergey Matveev [this message]