From 7c88364f61728b67cc4b5ec1cce310fc6b8d5cf7 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 8 Apr 2018 12:53:26 -0400 Subject: Sleep in watch when a file is deleted Reopening the path immediately would always fail. Wait a second for the file to hopefully reappear. --- bin/watch.c | 1 + 1 file changed, 1 insertion(+) 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); } -- cgit 1.4.1 this commit dontfiles
summary refs log tree commit diff
path: root/bin/README (unfollow)
Commit message (Expand)Author
2019-02-08Improve ANSI output and base IRC on itJune McEnroe
2019-02-08Add hi -nJune McEnroe
2019-02-08Elaborate hi man pageJune McEnroe
2019-02-08Use set for parent in hiJune McEnroe
2019-02-08Switch back to semantic keyword grouping in hiJune McEnroe
2019-02-08Match only the basename in hiJune McEnroe
2019-02-07Add mdoc syntax to hiJune McEnroe
2019-02-07Support multi-line C macros in hiJune McEnroe
2019-02-07Detect .mk files as makeJune McEnroe
2019-02-07Add make syntax to hiJune McEnroe
2019-02-07Add IRC output to hiJune McEnroe
2019-02-07Improve C syntax accuracy and add Format classJune McEnroe
2019-02-07Factor out hi checkJune McEnroe
2019-02-07Add Escape class to hiJune McEnroe
2019-02-07Add Todo class and parent syntax constraintJune McEnroe