Commit 990fcd92 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Fix lockup when receiving a signal and inotify is enabled

That part slipped through while reviewing the PR...
parent 1bd57982
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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
		}