ide: Fixed zombie documentor processes
authorJerome St-Louis <jerome@ecere.com>
Thu, 29 Aug 2013 14:28:53 +0000 (10:28 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 29 Aug 2013 14:28:53 +0000 (10:28 -0400)
ide/src/ide.ec

index 5db4a67..30d3837 100644 (file)
@@ -3624,10 +3624,20 @@ class IDEApp : GuiApplication
             char line[1024];
             ide.documentor.GetLine(line, sizeof(line));
             if(!strcmpi(line, "Exited"))
+            {
+               ide.documentor.CloseInput();
+               ide.documentor.CloseOutput();
+               ide.documentor.Wait();
                delete ide.documentor;
+            }
          }
          if(ide.documentor && ide.documentor.eof)
+         {
+            ide.documentor.CloseInput();
+            ide.documentor.CloseOutput();
+            ide.documentor.Wait();
             delete ide.documentor;
+         }
       }
       return true;
    }