Add wrappers for ExitProcess, TerminateProcess

Charles Wilson
Mon Oct 5 20:28:00 GMT 2009

Dave Korn wrote:
> Charles Wilson wrote:
>> By moving the definition to, we get its extern declaration in
>> the autogenerated globals.h -- which everybody includes via winsup.h.
>   Ooh, I forgot we had that.  Makes sense then.

As revised:

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

	Add cygwin wrappers for ExitProcess and TerminateProcess.
	* include/sys/cygwin.h: Declare new functions
	cygwin_exit_process and cygwin_terminate_process.
	* cygwin.din: Add new functions cygwin_exit_process and
	* (cygwin_exit_process): New function.
	(cygwin_terminate_process): New function.
	* include/cygwin/version.h: Bump version.
	* 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.
	* Move global variable sigExeced...
	* here.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 01-cygwin-terminate-process.patch-2
URL: <>

More information about the Cygwin-patches mailing list