summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-11-24 20:18:55 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-11-24 20:18:55 +0100
commit4ab777e98a2d2f0f5c29d63609e28faafe1cde7e (patch)
tree0268212a2f339fddd7ae19800a11da4257a3b992
parent161b963fc50ad9c70495d921705a3e9584bd7412 (diff)
downloadvdr-4ab777e98a2d2f0f5c29d63609e28faafe1cde7e.tar.gz
vdr-4ab777e98a2d2f0f5c29d63609e28faafe1cde7e.tar.bz2
Fixed a misplaced ')' in the fix about the stale lock files
-rw-r--r--HISTORY2
-rw-r--r--tools.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index ebec7985..15c62160 100644
--- a/HISTORY
+++ b/HISTORY
@@ -1817,3 +1817,5 @@ Video Disk Recorder Revision History
- Fixed missing initialization of 'number' in cChannel (thanks to Martin Hammerschmid
for reporting this one).
+- Fixed a misplaced ')' in the fix about the stale lock files (thanks again to
+ Oliver Endriss for pointing this out - it was my fault).
diff --git a/tools.c b/tools.c
index c34a6217..ff462ba8 100644
--- a/tools.c
+++ b/tools.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.c 1.75 2002/11/24 16:04:57 kls Exp $
+ * $Id: tools.c 1.76 2002/11/24 20:17:31 kls Exp $
*/
#include "tools.h"
@@ -722,7 +722,7 @@ bool cLockFile::Lock(int WaitSeconds)
if (errno == EEXIST) {
struct stat fs;
if (stat(fileName, &fs) == 0) {
- if (abs(time(NULL)) - fs.st_mtime > LOCKFILESTALETIME) {
+ if (abs(time(NULL) - fs.st_mtime) > LOCKFILESTALETIME) {
esyslog("ERROR: removing stale lock file '%s'", fileName);
if (remove(fileName) < 0) {
LOG_ERROR_STR(fileName);