summaryrefslogtreecommitdiff
path: root/eit.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-04-06 11:49:04 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-04-06 11:49:04 +0200
commitcb0e6f1b14caedc72675d2535cf8ee9aa354fcc2 (patch)
tree8d48a0836451dc4c849310fca6a8b402f4d3c39f /eit.c
parent7babc1034e9afbcfe5997e0d847faba938cfde7f (diff)
downloadvdr-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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/eit.c b/eit.c
index 4fc749bf..af4d3394 100644
--- a/eit.c
+++ b/eit.c
@@ -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;