diff --git a/main.c b/main.c index 636d836..cfb3b75 100644 --- a/main.c +++ b/main.c @@ -858,11 +858,8 @@ nextopt: { struct stat st; - if (stat(epgpath, &st) == -1) - { - perror("stat"); - return 1; - } + while (stat(epgpath, &st) == -1) + sleep(30); printf("epgd: DB time %ld, last %ld\n", st.st_mtime, last);