]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
fsmonitor: coverity - fsmonitor_fd cannot be negative
authorJaroslav Kysela <perex@perex.cz>
Fri, 3 Oct 2014 12:57:07 +0000 (14:57 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 3 Oct 2014 12:57:07 +0000 (14:57 +0200)
src/fsmonitor.c

index 3a9ed30e943d9e15d47cd297a1b86054602478a0..05c602eec54f50aae9ed59bd56a8375becea87a3 100644 (file)
@@ -53,7 +53,7 @@ fsmonitor_thread ( void* p )
   fsmonitor_link_t *fml;
   fsmonitor_t *fsm;
 
-  while (1) {
+  while (fsmonitor_fd >= 0) {
 
     /* Wait for event */
     c = read(fsmonitor_fd, buf, sizeof(buf));