summaryrefslogtreecommitdiff
path: root/package/busybox/busybox-1.18.0/busybox-1.18.0-runsvdir.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-12-21 09:39:33 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2010-12-21 09:39:33 +0100
commit5366b4fa9972f3372711f7f69810c0fcef183b07 (patch)
tree06f85abd7dfd24562d8b485547327ffc77c0cfda /package/busybox/busybox-1.18.0/busybox-1.18.0-runsvdir.patch
parent11ab05f53a16f635a27139b33170a9dadba9f3c5 (diff)
busybox: bump 1.18.x version
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/busybox/busybox-1.18.0/busybox-1.18.0-runsvdir.patch')
-rw-r--r--package/busybox/busybox-1.18.0/busybox-1.18.0-runsvdir.patch17
1 files changed, 0 insertions, 17 deletions
diff --git a/package/busybox/busybox-1.18.0/busybox-1.18.0-runsvdir.patch b/package/busybox/busybox-1.18.0/busybox-1.18.0-runsvdir.patch
deleted file mode 100644
index 41ad570a9..000000000
--- a/package/busybox/busybox-1.18.0/busybox-1.18.0-runsvdir.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-diff -urpN busybox-1.18.0/runit/runsvdir.c busybox-1.18.0-runsvdir/runit/runsvdir.c
---- busybox-1.18.0/runit/runsvdir.c 2010-11-22 21:43:22.000000000 +0100
-+++ busybox-1.18.0-runsvdir/runit/runsvdir.c 2010-12-06 01:27:56.926036992 +0100
-@@ -312,8 +312,11 @@ int runsvdir_main(int argc UNUSED_PARAM,
- 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", "");