This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: Add wrappers for ExitProcess, TerminateProcess
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 exceptions.cc ang
globals.cc 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
CW_EXIT_PROCESS.
* external.cc (exit_process): New function.
(cygwin_internal): Handle CW_EXIT_PROCESS.
* 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.
--
Chuck