File: 0023-Fix-1-second-delay-in-forced-rescan-implementation.patch

package info (click to toggle)
runit 2.1.2-54
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,524 kB
  • sloc: ansic: 6,098; sh: 1,741; makefile: 389
file content (23 lines) | stat: -rw-r--r-- 833 bytes parent folder | download
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) {