diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-04-06 11:49:04 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-04-06 11:49:04 +0200 |
commit | cb0e6f1b14caedc72675d2535cf8ee9aa354fcc2 (patch) | |
tree | 8d48a0836451dc4c849310fca6a8b402f4d3c39f /eit.c | |
parent | 7babc1034e9afbcfe5997e0d847faba938cfde7f (diff) | |
download | vdr-cb0e6f1b14caedc72675d2535cf8ee9aa354fcc2.tar.gz vdr-cb0e6f1b14caedc72675d2535cf8ee9aa354fcc2.tar.bz2 |
Fixed a problem with accessing the epg.data file before it is fully written
Diffstat (limited to 'eit.c')
-rw-r--r-- | eit.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -16,7 +16,7 @@ * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * - * $Id: eit.c 1.42 2002/04/01 12:58:20 kls Exp $ + * $Id: eit.c 1.43 2002/04/06 11:42:47 kls Exp $ ***************************************************************************/ #include "eit.h" @@ -1090,10 +1090,10 @@ void cSIProcessor::Action() if (epgDataFileName && now - lastDump > 600) { cMutexLock MutexLock(&schedulesMutex); - FILE *f = fopen(GetEpgDataFileName(), "w"); - if (f) { + cSafeFile f(GetEpgDataFileName()); + if (f.Open()) { schedules->Dump(f); - fclose(f); + f.Close(); } else LOG_ERROR; |