summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/tests/ForkedBroker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/tests/ForkedBroker.cpp b/cpp/src/tests/ForkedBroker.cpp
index 9ff301e29d..53eaa7e1ce 100644
--- a/cpp/src/tests/ForkedBroker.cpp
+++ b/cpp/src/tests/ForkedBroker.cpp
@@ -129,7 +129,7 @@ void ForkedBroker::init(const Args& userArgs) {
if (ferror(f)) throw ErrnoException("Error reading port number from child.");
else throw qpid::Exception("EOF reading port number from child.");
}
- ::close(pipeFds[0]);
+ ::fclose(f);
running = true;
}
else { // child