]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
quickfix for previous patches
authorJaroslav Kysela <perex@perex.cz>
Thu, 10 Mar 2016 08:57:06 +0000 (09:57 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 10 Mar 2016 08:57:06 +0000 (09:57 +0100)
src/dvr/dvr_inotify.c
src/fsmonitor.c

index 71b0ada60a3122197c389e1f033ebbcc6a4e45d9..8f0a9c2cae21ac8710365d6ba469377f7218d4d9 100644 (file)
@@ -327,7 +327,7 @@ void* _dvr_inotify_thread ( void *p )
   int fromfd;
   int cookie;
 
-  while (_inot_fd >= 0) {
+  while (atomic_get(&tvheadend_running)) {
 
     /* Read events */
     fromfd = 0;
index a297a3b9648c5cad34024ebf3112be57cc2fd27b..ad6b1c089da260fb72394e64eb0a5d6c5cc280f3 100644 (file)
@@ -53,7 +53,7 @@ fsmonitor_thread ( void* p )
   fsmonitor_link_t *fml;
   fsmonitor_t *fsm;
 
-  while (fsmonitor_fd >= 0) {
+  while (atomic_get(&tvheadend_running)) {
 
     /* Wait for event */
     c = read(fsmonitor_fd, buf, sizeof(buf));