diff options
author | Jochen Dolze <vdr@dolze.de> | 2011-08-01 17:55:01 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2011-08-01 17:55:01 +0200 |
commit | 197e21d0450b0fdc6b52f8c89a48c3cd637c88ed (patch) | |
tree | 2c21c0d96fabd693f22a3b956224f0a6da5ab383 /extpipe.cpp | |
parent | 4acb900fec6961c82d67f0d87e1e6a973324005d (diff) | |
download | vdr-plugin-xmltv2vdr-197e21d0450b0fdc6b52f8c89a48c3cd637c88ed.tar.gz vdr-plugin-xmltv2vdr-197e21d0450b0fdc6b52f8c89a48c3cd637c88ed.tar.bz2 |
Fixed "parse error" bug
Diffstat (limited to 'extpipe.cpp')
-rw-r--r-- | extpipe.cpp | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/extpipe.cpp b/extpipe.cpp index 4ce2c80..eb057d1 100644 --- a/extpipe.cpp +++ b/extpipe.cpp @@ -54,36 +54,8 @@ bool cExtPipe::Open(const char *Command) { close(fd_stdout[1]); // close write fd, we need only read fd close(fd_stderr[1]); // close write fd, we need only read fd - int flags=fcntl(fd_stdout[0],F_GETFL,0); - if (flags==-1) { - LOG_ERROR; - close(fd_stdout[0]); - close(fd_stderr[0]); - return false; - } - flags|=O_NONBLOCK; - if (fcntl(fd_stdout[0],F_SETFL,flags)==-1) { - LOG_ERROR; - close(fd_stdout[0]); - close(fd_stderr[0]); - return false; - } - flags=fcntl(fd_stderr[0],F_GETFL,0); - if (flags==-1) { - LOG_ERROR; - close(fd_stdout[0]); - close(fd_stderr[0]); - return false; - - } - if (fcntl(fd_stderr[0],F_SETFL,flags)==-1) { - LOG_ERROR; - close(fd_stdout[0]); - close(fd_stderr[0]); - return false; - } f_stdout = fd_stdout[0]; - f_stderr = fd_stderr[0]; + f_stderr = fd_stderr[0]; return true; } else // child process |