diff options
author | Denys Vlasenko | 2010-12-21 05:31:47 +0100 |
---|---|---|
committer | Denys Vlasenko | 2010-12-21 05:31:47 +0100 |
commit | 2a1571bfa003233470140a17be4ae4f0239f5a24 (patch) | |
tree | 57d2118dfaf31f19a0c5ad0acd8eb89a1c2cbfe7 /runit/runsvdir.c | |
parent | 5ab20641d687bfe4d86d255f8c369af54b6026e7 (diff) | |
download | busybox-2a1571bfa003233470140a17be4ae4f0239f5a24.zip busybox-2a1571bfa003233470140a17be4ae4f0239f5a24.tar.gz |
apply post-1.18.0 patches, bump version to 1.18.11_18_1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'runit/runsvdir.c')
-rw-r--r-- | runit/runsvdir.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/runit/runsvdir.c b/runit/runsvdir.c index e77eeff..1666642 100644 --- a/runit/runsvdir.c +++ b/runit/runsvdir.c @@ -312,8 +312,11 @@ int runsvdir_main(int argc UNUSED_PARAM, char **argv) last_mtime = s.st_mtime; last_dev = s.st_dev; last_ino = s.st_ino; - //if (now <= mtime) - // sleep(1); + /* if the svdir changed this very second, wait until the + * next second, because we won't be able to detect more + * changes within this second */ + while (time(NULL) == last_mtime) + usleep(100000); need_rescan = do_rescan(); while (fchdir(curdir) == -1) { warn2_cannot("change directory, pausing", ""); |