diff options
author | Iliyan Malchev <malchev@google.com> | 2011-09-22 16:29:28 -0700 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-09-22 16:29:28 -0700 |
commit | e96add2500205006f27fbb85f6898b5b9f618ddd (patch) | |
tree | f8a57014a8bfc96509e9bd920495ae4e2113ff71 /libtiutils | |
parent | b6373143cb95cb4efa6fbd93f24ab93be6be38e9 (diff) | |
download | omap4-aah-e96add2500205006f27fbb85f6898b5b9f618ddd.tar.gz |
omap4xxx: fix errors and dead code in usage of pipe(2)
Change-Id: I7134e635316c2a118498d23521248016b73d6496
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'libtiutils')
-rwxr-xr-x | libtiutils/MessageQueue.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libtiutils/MessageQueue.cpp b/libtiutils/MessageQueue.cpp index 1a5942a..35b4873 100755 --- a/libtiutils/MessageQueue.cpp +++ b/libtiutils/MessageQueue.cpp @@ -74,12 +74,12 @@ MessageQueue::~MessageQueue() { LOG_FUNCTION_NAME; - if(this->fd_read) + if(this->fd_read < 0) { close(this->fd_read); } - if(this->fd_write) + if(this->fd_write < 0) { close(this->fd_write); } |