From daeb19780dcb021ee12ec5ebe2adbb8ad835c075 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 18 Apr 2019 08:28:09 -0400 Subject: Gracefully handle inotify failures --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 570f906..f7ea18b 100644 --- a/src/main.c +++ b/src/main.c @@ -62,7 +62,8 @@ int main(int argc, char **argv) opt.inotify_fd = inotify_init(); if (opt.inotify_fd < 0) { opt.auto_reload = 0; - eprintf("inotify_init failed:"); + weprintf("inotify_init failed:"); + weprintf("Disabling inotify-based auto-reload"); } } #endif -- cgit v1.2.3