]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
fixup! rrl: allow changing configuration on reload docs-develop-rrl-8r8r8r/deployments/3660
authorLukáš Ondráček <lukas.ondracek@nic.cz>
Tue, 2 Apr 2024 15:47:27 +0000 (17:47 +0200)
committerLukáš Ondráček <lukas.ondracek@nic.cz>
Tue, 2 Apr 2024 15:47:27 +0000 (17:47 +0200)
daemon/rrl/api.c

index d6b332933f937c90fdb56cfbb8e6a94eb3bc4a6b..264f16905029f533a22fe8a36f55f5d6bd021bb0 100644 (file)
@@ -120,11 +120,11 @@ void kr_rrl_deinit(void)
        fl.l_type = F_WRLCK;
        if (fcntl(fd, F_SETLK, &fl) != -1) {
 
-               /* If the RRL configuration is updated at runtime, manager should remove the file (TODO)
-                * and keep new processes create it again while old processes are still using the old data.
+               /* If the RRL configuration is updated at runtime, manager removes the file
+                * and the new processes create it again while old processes are still using the old data.
                 * Here we keep zero-size file not to accidentally remove the new file instead of the old one.
                 * Still truncating the file will cause currently starting processes waiting for read lock on the same file to fail,
-                * but this is not expected to happen. */
+                * but such processes are not expected to exist. */
                ftruncate(fd, 0);
 
                fl.l_type = F_UNLCK;