From 7fed451226e94a2100c68494bcdf0e4fb56a2350 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 7 Jul 2019 22:04:41 +0200 Subject: [PATCH] inotify TODO --- compiler/main.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/main.v b/compiler/main.v index e719d74476..e79fb45593 100644 --- a/compiler/main.v +++ b/compiler/main.v @@ -399,6 +399,7 @@ int load_so(byteptr path) { void reload_so() { int last = 0; while (1) { + // TODO use inotify int now = os__file_last_mod_unix(tos2("$file")); if (now != last) { //v -o bounce -shared bounce.v @@ -406,7 +407,7 @@ void reload_so() { last = now; load_so("$so_name"); } - time__sleep_ms(1000); + time__sleep_ms(500); } } ' )