summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-06-24 10:12:09 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-06-24 10:12:09 +0200
commit1b0ac71a33fab072c55ba3b52ab960c6a8830b59 (patch)
tree5b3f299bb99963e5b37d819ef0822ea141647bb7
parent7b3d0ce03eab74060b2887b51ce9aac562678cf2 (diff)
downloadvdr-1b0ac71a33fab072c55ba3b52ab960c6a8830b59.tar.gz
vdr-1b0ac71a33fab072c55ba3b52ab960c6a8830b59.tar.bz2
Removed a double fdopen() in cPipe::Open()
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY1
-rw-r--r--thread.c3
3 files changed, 3 insertions, 2 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 91178b2c..7969a3ef 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -219,6 +219,7 @@ Stefan Huelswitt <huels@iname.com>
again
for reporting a problem with channel up/down switching on single card systems
for fixing the PremiereContentTransmissionDescriptor in 'libsi'
+ for reporting a double fdopen() in cPipe::Open()
Ulrich Röder <roeder@efr-net.de>
for pointing out that there are channels that have a symbol rate higher than 27500
diff --git a/HISTORY b/HISTORY
index 89ea341e..700f47c1 100644
--- a/HISTORY
+++ b/HISTORY
@@ -4811,3 +4811,4 @@ Video Disk Recorder Revision History
macro, even if it doesn't use it itself!
- Added a comment regarding the PLUGIN macro to the 'newplugin' script.
- Added '--vfat' to the vdr.1 man page (reported by Udo Richter).
+- Removed a double fdopen() in cPipe::Open() (reported by Stefan Huelswitt).
diff --git a/thread.c b/thread.c
index c65f9e29..1749fc1e 100644
--- a/thread.c
+++ b/thread.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: thread.c 1.55 2006/06/02 13:51:39 kls Exp $
+ * $Id: thread.c 1.56 2006/06/24 10:10:58 kls Exp $
*/
#include "thread.h"
@@ -423,7 +423,6 @@ bool cPipe::Open(const char *Command, const char *Mode)
iopipe = 1;
}
close(fd[iopipe]);
- f = fdopen(fd[1 - iopipe], mode);
if ((f = fdopen(fd[1 - iopipe], mode)) == NULL) {
LOG_ERROR;
close(fd[1 - iopipe]);