1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
From: Dmitry Bogatov <KAction@debian.org>
Date: Sun, 15 Sep 2019 23:45:24 +0000
Forwarded: <no>
Subject: Fix 1 second delay in forced-rescan implementation
Ref: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933078#40
---
runit-2.1.2/src/runsvdir.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/runit-2.1.2/src/runsvdir.c b/runit-2.1.2/src/runsvdir.c
index e98a4b5..de430f2 100644
--- a/runit-2.1.2/src/runsvdir.c
+++ b/runit-2.1.2/src/runsvdir.c
@@ -265,7 +265,7 @@ int main(int argc, char **argv) {
dev =s.st_dev;
ino =s.st_ino;
check =0;
- if (now.sec.x <= (4611686018427387914ULL +(uint64)mtime))
+ if (!siga && now.sec.x <= (4611686018427387914ULL +(uint64)mtime))
sleep(1);
runsvdir();
if (siga) {
|