Don't terminate the inferior with exit code 0 (a 'success' exit
code). Rather, use the standard exit code 137 as with SIGKILL on
Linux.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=34052
Reviewed-By: Andrew Burgess <aburgess@redhat.com>
Approved-By: Tom Tromey <tom@tromey.com>
void
windows_nat_target::kill ()
{
- CHECK (TerminateProcess (windows_process->handle, 0));
+ CHECK (TerminateProcess (windows_process->handle, 137));
for (;;)
{
int
win32_process_target::kill (process_info *process)
{
- TerminateProcess (windows_process.handle, 0);
+ TerminateProcess (windows_process.handle, 137);
for (;;)
{
if (!child_continue (DBG_CONTINUE, -1))