spawnProcess on win32 should close its self.hProcess handle

[email protected]
Newsgroups gmane.comp.python.twisted.bugs
Message-ID <[email protected]>
New submission from amaury <None>:

In `_dumbwin32proc.Process`, the process handle should be closed when the process has ended, otherwise it's a resource leak.

Also, the `self.hThread` member is still filled, but the handle is always closed. I suggest to close it at the end: `hThread` can be useful is some cases to control the process (I do use it to call `PostThreadMessage` with a `WM_QUIT` message).

The attached patch closes and clears both handles when the process terminates.

----------
Type     : enhancement
Component: core
Keywords : 
Priority : normal
Nosy     : 
----------
http://twistedmatrix.com/trac/ticket/3893
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.