diff options
Diffstat (limited to 'indra/llplugin')
| -rw-r--r-- | indra/llplugin/llpluginprocessparent.cpp | 28 | ||||
| -rw-r--r-- | indra/llplugin/llpluginprocessparent.h | 12 | 
2 files changed, 20 insertions, 20 deletions
| diff --git a/indra/llplugin/llpluginprocessparent.cpp b/indra/llplugin/llpluginprocessparent.cpp index 9b225cabb8..f10eaee5b4 100644 --- a/indra/llplugin/llpluginprocessparent.cpp +++ b/indra/llplugin/llpluginprocessparent.cpp @@ -163,8 +163,8 @@ void LLPluginProcessParent::errorState(void)  void LLPluginProcessParent::init(const std::string &launcher_filename, const std::string &plugin_dir, const std::string &plugin_filename, bool debug)  {	 -	mProcessParams["executable"] = launcher_filename; -	mProcessParams["cwd"] = plugin_dir; +	mProcessParams.executable = launcher_filename; +	mProcessParams.cwd = plugin_dir;  	mPluginFile = plugin_filename;  	mPluginDir = plugin_dir;  	mCPUUsage = 0.0f; @@ -375,7 +375,7 @@ void LLPluginProcessParent::idle(void)  				// Launch the plugin process.  				// Only argument to the launcher is the port number we're listening on -				mProcessParams["args"].append(stringize(mBoundPort)); +				mProcessParams.args.add(stringize(mBoundPort));  				if (! (mProcess = LLProcess::create(mProcessParams)))  				{  					errorState(); @@ -390,17 +390,17 @@ void LLPluginProcessParent::idle(void)  						// The command we're constructing would look like this on the command line:  						// osascript -e 'tell application "Terminal"' -e 'set win to do script "gdb -pid 12345"' -e 'do script "continue" in win' -e 'end tell' -						LLSD params; -						params["executable"] = "/usr/bin/osascript"; -						params["args"].append("-e"); -						params["args"].append("tell application \"Terminal\""); -						params["args"].append("-e"); -						params["args"].append(STRINGIZE("set win to do script \"gdb -pid " -														<< mProcess->getProcessID() << "\"")); -						params["args"].append("-e"); -						params["args"].append("do script \"continue\" in win"); -						params["args"].append("-e"); -						params["args"].append("end tell"); +						LLProcess::Params params; +						params.executable = "/usr/bin/osascript"; +						params.args.add("-e"); +						params.args.add("tell application \"Terminal\""); +						params.args.add("-e"); +						params.args.add(STRINGIZE("set win to do script \"gdb -pid " +												  << mProcess->getProcessID() << "\"")); +						params.args.add("-e"); +						params.args.add("do script \"continue\" in win"); +						params.args.add("-e"); +						params.args.add("end tell");  						mDebugger = LLProcess::create(params);  						#endif diff --git a/indra/llplugin/llpluginprocessparent.h b/indra/llplugin/llpluginprocessparent.h index e8bcba75e0..990fc5cbae 100644 --- a/indra/llplugin/llpluginprocessparent.h +++ b/indra/llplugin/llpluginprocessparent.h @@ -140,27 +140,27 @@ private:  	};  	EState mState;  	void setState(EState state); -	 +  	bool pluginLockedUp();  	bool pluginLockedUpOrQuit();  	bool accept(); -		 +  	LLSocket::ptr_t mListenSocket;  	LLSocket::ptr_t mSocket;  	U32 mBoundPort; -	LLSD mProcessParams; +	LLProcess::Params mProcessParams;  	LLProcessPtr mProcess; -	 +  	std::string mPluginFile;  	std::string mPluginDir;  	LLPluginProcessParentOwner *mOwner; -	 +  	typedef std::map<std::string, LLPluginSharedMemory*> sharedMemoryRegionsType;  	sharedMemoryRegionsType mSharedMemoryRegions; -	 +  	LLSD mMessageClassVersions;  	std::string mPluginVersionString; | 
