wait for raw database if necessary

This commit is contained in:
hummypkg 2013-01-05 02:21:27 +00:00 committed by HummyPkg
parent 603cbd81e5
commit e6e681a43a
1 changed files with 2 additions and 5 deletions

7
main.c
View File

@ -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);