diff options
author | Nyx (Neal Orman) <nyx@lindenlab.com> | 2009-12-14 17:46:53 -0500 |
---|---|---|
committer | Nyx (Neal Orman) <nyx@lindenlab.com> | 2009-12-14 17:46:53 -0500 |
commit | f125039abcb566eaa7bdf33ce9c8c550cc25783a (patch) | |
tree | af4d577b9559855177bd0e24f95ee90976e6e8e0 /indra/llplugin/llpluginprocessparent.cpp | |
parent | 4cc5f81ddf0b9a190235e8946d7e438499d91639 (diff) | |
parent | 93f827ec7855c419c19dbf1a055e7cdc546eb650 (diff) |
merge with avatar-pipeline
--HG--
branch : avatar-pipeline
Diffstat (limited to 'indra/llplugin/llpluginprocessparent.cpp')
-rw-r--r-- | indra/llplugin/llpluginprocessparent.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/indra/llplugin/llpluginprocessparent.cpp b/indra/llplugin/llpluginprocessparent.cpp index f60838b1e7..dab6d645dd 100644 --- a/indra/llplugin/llpluginprocessparent.cpp +++ b/indra/llplugin/llpluginprocessparent.cpp @@ -79,8 +79,10 @@ LLPluginProcessParent::~LLPluginProcessParent() // and remove it from our map mSharedMemoryRegions.erase(iter); } - - mProcess.kill(); + + // orphaning the process means it won't be killed when the LLProcessLauncher is destructed. + // This is what we want -- it should exit cleanly once it notices the sockets have been closed. + mProcess.orphan(); killSockets(); } @@ -414,7 +416,8 @@ void LLPluginProcessParent::idle(void) break; case STATE_CLEANUP: - mProcess.kill(); + // Don't do a kill here anymore -- closing the sockets is the new 'kill'. + mProcess.orphan(); killSockets(); setState(STATE_DONE); break; |