summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-04-08 12:53:26 -0400
committerJune McEnroe <june@causal.agency>2018-04-08 12:53:26 -0400
commit7c88364f61728b67cc4b5ec1cce310fc6b8d5cf7 (patch)
tree09024255f5a13712c0bfcab32b9a1329780aa22b /bin
parentCommit with june@causal.agency (diff)
downloadsrc-7c88364f61728b67cc4b5ec1cce310fc6b8d5cf7.tar.gz
src-7c88364f61728b67cc4b5ec1cce310fc6b8d5cf7.zip
Sleep in watch when a file is deleted
Reopening the path immediately would always fail. Wait a second for the
file to hopefully reappear.
Diffstat (limited to '')
-rw-r--r--bin/watch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/watch.c b/bin/watch.c
index 442835fa..f33c9ee7 100644
--- a/bin/watch.c
+++ b/bin/watch.c
@@ -85,6 +85,7 @@ int main(int argc, char *argv[]) {
 
         if (event.fflags & NOTE_DELETE) {
             close(event.ident);
+            sleep(1);
             watch(kq, event.udata);
         }
 
4-07-28git: update to v2.0.3John Keeping 2014-07-28parsing.c: make commit buffer constJohn Keeping 2014-06-30Bump version.Jason A. Donenfeld 2014-06-29remove debug fprinf() calls that sneaked in with commit 79c985Christian Hesse 2014-06-28git: update to 2.0.1Christian Hesse 2014-06-28ui-patch: Flush stdout after outputting dataJohn Keeping 2014-06-28ui-log: ignore unhandled argumentsJohn Keeping 2014-06-28git: update for git 2.0Christian Hesse 2014-04-17remove trailing whitespaces from source filesChristian Hesse 2014-04-12git: update to 1.9.2Christian Hesse 2014-04-05Fix cgit_parse_url when a repo url is contained in another repo urlJulian Maurice 2014-03-20Makefile: use more reliable git tarball mirrorJason A. Donenfeld 2014-03-20git: update to 1.9.1Christian Hesse