1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Removed a double fdopen() in cPipe::Open()

This commit is contained in:
Klaus Schmidinger 2006-06-24 10:12:09 +02:00
parent 7b3d0ce03e
commit 1b0ac71a33
3 changed files with 3 additions and 2 deletions

View File

@ -219,6 +219,7 @@ Stefan Huelswitt <huels@iname.com>
again again
for reporting a problem with channel up/down switching on single card systems for reporting a problem with channel up/down switching on single card systems
for fixing the PremiereContentTransmissionDescriptor in 'libsi' for fixing the PremiereContentTransmissionDescriptor in 'libsi'
for reporting a double fdopen() in cPipe::Open()
Ulrich Röder <roeder@efr-net.de> Ulrich Röder <roeder@efr-net.de>
for pointing out that there are channels that have a symbol rate higher than 27500 for pointing out that there are channels that have a symbol rate higher than 27500

View File

@ -4811,3 +4811,4 @@ Video Disk Recorder Revision History
macro, even if it doesn't use it itself! macro, even if it doesn't use it itself!
- Added a comment regarding the PLUGIN macro to the 'newplugin' script. - Added a comment regarding the PLUGIN macro to the 'newplugin' script.
- Added '--vfat' to the vdr.1 man page (reported by Udo Richter). - Added '--vfat' to the vdr.1 man page (reported by Udo Richter).
- Removed a double fdopen() in cPipe::Open() (reported by Stefan Huelswitt).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * 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" #include "thread.h"
@ -423,7 +423,6 @@ bool cPipe::Open(const char *Command, const char *Mode)
iopipe = 1; iopipe = 1;
} }
close(fd[iopipe]); close(fd[iopipe]);
f = fdopen(fd[1 - iopipe], mode);
if ((f = fdopen(fd[1 - iopipe], mode)) == NULL) { if ((f = fdopen(fd[1 - iopipe], mode)) == NULL) {
LOG_ERROR; LOG_ERROR;
close(fd[1 - iopipe]); close(fd[1 - iopipe]);