Add wrappers for ExitProcess, TerminateProcess

Charles Wilson
Tue Oct 6 15:49:00 GMT 2009

Charles Wilson wrote:
>> I can live with both variations, though I like the one entry point idea
>> as in `cygwin_internal (CW_EXIT_PROCESS, UINT, bool)'  more.
> As re-implemented, attached. (I used the windows BOOL type, rather than
> the C99/C++ bool type).  Test case:

AND...regenerated the patch against this morning's CVS, in which the
sigExeced stuff was committed. (Patch unchanged except ang stuff removed from patch).

2009-10-05  Charles Wilson  <...>

	Add cygwin wrapper for ExitProcess and TerminateProcess.
	* include/sys/cygwin.h: Declare new cygwin_getinfo_type
	* (exit_process): New function.
	(cygwin_internal): Handle CW_EXIT_PROCESS.
	* pinfo.h (pinfo::set_exit_code): New method.
	* (pinfo::set_exit_code): New, refactored from...
	(pinfo::maybe_set_exit_code_from_windows): here. Call it.


More information about the Cygwin-patches mailing list