wait for raw database if necessary
This commit is contained in:
parent
603cbd81e5
commit
e6e681a43a
7
main.c
7
main.c
|
@ -858,11 +858,8 @@ nextopt:
|
||||||
{
|
{
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
||||||
if (stat(epgpath, &st) == -1)
|
while (stat(epgpath, &st) == -1)
|
||||||
{
|
sleep(30);
|
||||||
perror("stat");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
printf("epgd: DB time %ld, last %ld\n",
|
printf("epgd: DB time %ld, last %ld\n",
|
||||||
st.st_mtime, last);
|
st.st_mtime, last);
|
||||||
|
|
Loading…
Reference in New Issue