From e98438bda70f92c1caa0621b7e467b72c7e484ad Mon Sep 17 00:00:00 2001
From: Nat Goodspeed <nat@lindenlab.com>
Date: Sat, 18 Feb 2012 12:00:13 -0500
Subject: [PATCH] Fix subtle bug in ReadPipeImpl: wouldn't tolerate multiple
 instances. That is, trying to instantiate a ReadPipeImpl while another
 already existed would throw an LLEventPump::DupPumpName exception.
 Fortunately this behavior is easily bypassed.

---
 indra/llcommon/llprocess.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/llcommon/llprocess.cpp b/indra/llcommon/llprocess.cpp
index add1649ba52..d6a5a185651 100644
--- a/indra/llcommon/llprocess.cpp
+++ b/indra/llcommon/llprocess.cpp
@@ -209,7 +209,7 @@ class ReadPipeImpl: public LLProcess::ReadPipe
 		mPipe(pipe),
 		// Essential to initialize our std::istream with our special streambuf!
 		mStream(&mStreambuf),
-		mPump("ReadPipe"),
+		mPump("ReadPipe", true),    // tweak name as needed to avoid collisions
 		// use funky syntax to call max() to avoid blighted max() macros
 		mLimit(npos)
 	{
-- 
GitLab