Add wrappers for ExitProcess, TerminateProcess

Charles Wilson cygwin@cwilson.fastmail.fm
Mon Oct 5 20:28:00 GMT 2009


Dave Korn wrote:
> Charles Wilson wrote:
> 
>> By moving the definition to globals.cc, 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_terminate_process.
	* dcrt0.cc (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.cc (pinfo::set_exit_code): New, refactored from...
	(pinfo::maybe_set_exit_code_from_windows): here. Call it.
	* exceptions.cc: Move global variable sigExeced...
	* globals.cc: here.


--
Chuck
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 01-cygwin-terminate-process.patch-2
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20091005/88bff1fe/attachment.ksh>


More information about the Cygwin-patches mailing list