[PATCH] Cleanup: Close handles in script.cc:run()

Robert Collins rbcollins@cygwin.com
Sat Mar 15 22:11:00 GMT 2003


Igor Pechtchanski wrote:
> The attached patch closes the unneeded handles in run() in script.cc.
> Those handles should be closed according to
> <http://msdn.microsoft.com/library/en-us/dllproc/base/createprocess.asp>:
> 
> lpProcessInformation
>            [out] Pointer to a PROCESS_INFORMATION structure that receives
>            identification information about the new process.
> 
>            Handles in PROCESS_INFORMATION must be closed with CloseHandle
>            when they are no longer needed.
> 
> Feel free to reject if my understanding of the above is incorrect.
> 	Igor
> ==============================================================================
> ChangeLog:
> 2003-03-15  Igor Pechtchanski <pechtcha@cs.nyu.edu>
> 
> 	* script.cc (run): Close unneeded handles.
> 

Applied



More information about the Cygwin-apps mailing list