summaryrefslogtreecommitdiff
path: root/libs/IO/src/CommandReader.cc
diff options
context:
space:
mode:
authorgeronimo <geronimo013@gmx.de>2012-08-04 09:10:44 (GMT)
committergeronimo <geronimo013@gmx.de>2012-08-04 09:10:44 (GMT)
commite8175c7b23047fefd52f85afe05e2864b2a9bba8 (patch)
tree8dab4e287545805d173a6c8e297c1798a1a01599 /libs/IO/src/CommandReader.cc
parentc7d67f443bdfe842c2e356d4edbe345338e3e08d (diff)
downloadcmp-e8175c7b23047fefd52f85afe05e2864b2a9bba8.tar.gz
cmp-e8175c7b23047fefd52f85afe05e2864b2a9bba8.tar.bz2
created new icons to enable visual feedback on mediatype selection, changed json-parser and enabled virtual mediatype usage
Diffstat (limited to 'libs/IO/src/CommandReader.cc')
-rw-r--r--libs/IO/src/CommandReader.cc12
1 files changed, 2 insertions, 10 deletions
diff --git a/libs/IO/src/CommandReader.cc b/libs/IO/src/CommandReader.cc
index 0bc6109..accd79f 100644
--- a/libs/IO/src/CommandReader.cc
+++ b/libs/IO/src/CommandReader.cc
@@ -51,17 +51,10 @@ void cCommandReader::Close(void)
int status = 0;
if (!fdMax) fdMax = getdtablesize();
- if (fd > 0 && fd < fdMax) {
- close(fd);
- isyslog("closed fd #%d", fd);
- }
+ if (fd > 0 && fd < fdMax) close(fd);
fd = -1;
- if (pid != waitpid(pid, &status, 0)) {
+ if (pid != waitpid(pid, &status, 0))
esyslog("ERROR: failed to wait for child #%d - error #%d", pid, errno);
- }
- else {
- isyslog("child exit status: %d", WEXITSTATUS(status));
- }
pid = -1;
}
@@ -110,7 +103,6 @@ bool cCommandReader::Open(void)
esyslog("ERROR: failed to close write end from parent side!");
exit(-1);
}
- isyslog("child process #%d started ... fd %d", pid, child2Parent[FDRead]);
fd = child2Parent[FDRead];
return true;
}