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); > > >hmm...probably > cygwin_internal (CW_TERMINATE_PROCESS, HANDLE, UINT) > cygwin_internal (CW_EXIT_PROCESS, UINT) >right?
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. cgf