summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-07-08 18:58:18 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-07-08 18:58:18 +0200
commit990fcd92835f7626c1fc3d14c7efb2934a5055d3 (patch)
treee48cc2ec80ca9e85d478722475aa339dfb174fe2 /src
parent1bd5798221e26f8a7a10143bbe97bfef267fc647 (diff)
Fix lockup when receiving a signal and inotify is enabled
That part slipped through while reviewing the PR...
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index f7ea18b..31ab8f8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -213,7 +213,7 @@ int feh_main_iteration(int block)
else if ((count > 0) && (FD_ISSET(0, &fdset)))
feh_event_handle_stdin();
#ifdef HAVE_INOTIFY
- else if (count && (FD_ISSET(opt.inotify_fd, &fdset)))
+ else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))
feh_event_handle_inotify();
#endif
}
@@ -230,7 +230,7 @@ int feh_main_iteration(int block)
else if ((count > 0) && (FD_ISSET(0, &fdset)))
feh_event_handle_stdin();
#ifdef HAVE_INOTIFY
- else if (count && (FD_ISSET(opt.inotify_fd, &fdset)))
+ else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset)))
feh_event_handle_inotify();
#endif
}