From daca021370761be74c7042dce00ba70a2c820224 Mon Sep 17 00:00:00 2001
From: John Biddiscombe <biddisco@cscs.ch>
Date: Tue, 5 Jul 2011 11:23:59 +0200
Subject: [PATCH] Reset SocketDescriptor after CloseSocket

---
 .../ClientServerCore/vtkProcessModuleAutoMPI.cxx   |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ParaViewCore/ClientServerCore/vtkProcessModuleAutoMPI.cxx b/ParaViewCore/ClientServerCore/vtkProcessModuleAutoMPI.cxx
index 829b500..3862797 100644
--- a/ParaViewCore/ClientServerCore/vtkProcessModuleAutoMPI.cxx
+++ b/ParaViewCore/ClientServerCore/vtkProcessModuleAutoMPI.cxx
@@ -55,6 +55,7 @@ public:
 
     int port = this->GetPort(this->SocketDescriptor);
     this->CloseSocket(this->SocketDescriptor);
+    this->SocketDescriptor = -1;
     return port;
     }
   private:
-- 
1.7.3.1.msysgit.0

