]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/process.h
I got tired of some of the memory leak messages related to html and
[wxWidgets.git] / include / wx / process.h
index dc4d5a43a9c94efe3e20246a47de0a76c8ce66d4..b612306a661a2c313f557da3c16fe4547860af19 100644 (file)
@@ -2,11 +2,11 @@
 // Name:        process.h
 // Purpose:     wxProcess class
 // Author:      Guilhem Lavaux
 // Name:        process.h
 // Purpose:     wxProcess class
 // Author:      Guilhem Lavaux
-// Modified by:
+// Modified by: Vadim Zeitlin to check error codes, added Detach() method
 // Created:     24/06/98
 // RCS-ID:      $Id$
 // Copyright:   (c) 1998 Guilhem Lavaux
 // Created:     24/06/98
 // RCS-ID:      $Id$
 // Copyright:   (c) 1998 Guilhem Lavaux
-// Licence:    wxWindows license
+// Licence:     wxWindows license
 /////////////////////////////////////////////////////////////////////////////
 
 #ifndef _WX_PROCESSH__
 /////////////////////////////////////////////////////////////////////////////
 
 #ifndef _WX_PROCESSH__
@@ -55,6 +55,10 @@ public:
 
     virtual void OnTerminate(int pid, int status);
 
 
     virtual void OnTerminate(int pid, int status);
 
+    // detach from the parent - should be called by the parent if it's deleted
+    // before the process it started terminates
+    void Detach();
+
 protected:
     int m_id;
 };
 protected:
     int m_id;
 };