From 9cec65bfe71c9a6a1ddb4822bd9e782c20c9f96d Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 20 Oct 2010 14:02:12 +0000 Subject: Add matching fclose for fdopen in ForkedBroker. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1025587 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/ForkedBroker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src') 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 -- cgit v1.2.1