1 diff -urpN busybox-1.18.0/runit/runsvdir.c busybox-1.18.0-runsvdir/runit/runsvdir.c
2 --- busybox-1.18.0/runit/runsvdir.c 2010-11-22 21:43:22.000000000 +0100
3 +++ busybox-1.18.0-runsvdir/runit/runsvdir.c 2010-12-06 01:27:56.926036992 +0100
4 @@ -312,8 +312,11 @@ int runsvdir_main(int argc UNUSED_PARAM,
5 last_mtime = s.st_mtime;
10 + /* if the svdir changed this very second, wait until the
11 + * next second, because we won't be able to detect more
12 + * changes within this second */
13 + while (time(NULL) == last_mtime)
15 need_rescan = do_rescan();
16 while (fchdir(curdir) == -1) {
17 warn2_cannot("change directory, pausing", "");