From 7a357f830c32f0255ceaca1b09816a9c6351da72 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sat, 28 Feb 2015 06:56:56 +0000 Subject: [PATCH] [ROSAUTOTEST] - Avoid double-close of pipe handles svn path=/trunk/; revision=66482 --- rostests/rosautotest/CPipe.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rostests/rosautotest/CPipe.cpp b/rostests/rosautotest/CPipe.cpp index 8d87723858d..7dea2b468c7 100644 --- a/rostests/rosautotest/CPipe.cpp +++ b/rostests/rosautotest/CPipe.cpp @@ -42,6 +42,7 @@ CPipe::CloseReadPipe() if (!m_hReadPipe) FATAL("Trying to close already closed read pipe"); CloseHandle(m_hReadPipe); + m_hReadPipe = NULL; } /** @@ -53,6 +54,7 @@ CPipe::CloseWritePipe() if (!m_hWritePipe) FATAL("Trying to close already closed write pipe"); CloseHandle(m_hWritePipe); + m_hWritePipe = NULL; } /**