From 12f55cbada502fd7ce0731816735b448da4e3543 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Luk=C3=A1=C5=A1=20Ondr=C3=A1=C4=8Dek?= Date: Tue, 2 Apr 2024 17:47:27 +0200 Subject: [PATCH] fixup! rrl: allow changing configuration on reload --- daemon/rrl/api.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon/rrl/api.c b/daemon/rrl/api.c index d6b332933..264f16905 100644 --- a/daemon/rrl/api.c +++ b/daemon/rrl/api.c @@ -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; -- 2.47.2