diff options
author | Christopher Faylor <me@cgf.cx> | 2005-01-31 14:34:07 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-01-31 14:34:07 +0000 |
commit | ad1d82b8519898e0a41be6dda97607f665d806a4 (patch) | |
tree | 9c96ef30e81648c73c462fd81166cc9a5a26073f | |
parent | 6d336c0e5a511e8e827ea9c0f75a7f231b571eaf (diff) | |
download | cygnal-ad1d82b8519898e0a41be6dda97607f665d806a4.tar.gz cygnal-ad1d82b8519898e0a41be6dda97607f665d806a4.tar.bz2 cygnal-ad1d82b8519898e0a41be6dda97607f665d806a4.zip |
* pinfo.cc (pinfo::exit): Only return low-order 16 bits when exiting.
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/pinfo.cc | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 8e43421af..dc23ecf9f 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2005-01-31 Christopher Faylor <cgf@timesys.com> + + * pinfo.cc (pinfo::exit): Only return low-order 16 bits when exiting. + 2005-01-31 Corinna Vinschen <corinna@vinschen.de> * fhandler_process.cc (format_process_maps): Get destbuf argument by diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 6df0f5e0c..1c67f8764 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -159,7 +159,7 @@ pinfo::exit (DWORD n) _my_tls.stackptr = _my_tls.stack; sigproc_printf ("Calling ExitProcess hProcess %p, n %p, exitcode %p", hProcess, n, exitcode); - ExitProcess (exitcode); + ExitProcess (exitcode & 0xffff); } # undef self |