Add wrappers for ExitProcess, TerminateProcess

Christopher Faylor
Tue Oct 6 03:42:00 GMT 2009

On Mon, Oct 05, 2009 at 04:49:11PM -0400, Charles Wilson wrote:
>Corinna Vinschen wrote:
>> I have some doubts that we really need such a functionality externally
>> available, outside of the limited scenario of something like
>> pseudo-reloc.  An API for those knowing what this is about is very
>> likely sufficient.  What about
>>    cygwin_internal (CW_TERMINATE_PROCESS);
>>    cygwin_internal (CW_EXIT_PROCESS);
>     cygwin_internal (CW_TERMINATE_PROCESS, HANDLE, UINT)
>     cygwin_internal (CW_EXIT_PROCESS, UINT)

Do we really have to provide the ability to kill some other process?
Maybe we really only need one call with two arguments - one which is the
exit value and one which indicates whether to exit with prejudice.

cygwin_internal (CW_EXIT_PROCESS, UINT, bool);

where the bool argument is true if we want to call TerminateProcess on
this process.


More information about the Cygwin-patches mailing list