mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
* pinfo.cc (pinfo::exit): Swap signal and normal exit value when not started
from a cygwin process - just like the good-old-days of B20.
This commit is contained in:
parent
68f62c98f9
commit
3bfd1c5e8c
@ -1,3 +1,8 @@
|
||||
2006-01-01 Christopher Faylor <cgf@timesys.com>
|
||||
|
||||
* pinfo.cc (pinfo::exit): Swap signal and normal exit value when not
|
||||
started from a cygwin process - just like the good-old-days of B20.
|
||||
|
||||
2006-01-01 Christopher Faylor <cgf@timesys.com>
|
||||
|
||||
* strace.cc (strace::write_childpid): Remove debugging output.
|
||||
|
@ -158,7 +158,7 @@ pinfo::exit (DWORD n)
|
||||
add_rusage (&self->rusage_self, &r);
|
||||
int exitcode = self->exitcode & 0xffff;
|
||||
if (!self->cygstarted)
|
||||
exitcode >>= 8;
|
||||
exitcode = ((exitcode & 0xff) << 8) | ((exitcode >> 8) & 0xff);
|
||||
sigproc_printf ("Calling ExitProcess n %p, exitcode %p", n, exitcode);
|
||||
ExitProcess (exitcode);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user