diff options
author | Christopher Faylor <me@cgf.cx> | 2004-12-27 00:35:19 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-12-27 00:35:19 +0000 |
commit | 445d5ce8fcffed71f4349c723b707dc779fe1cc2 (patch) | |
tree | dd0a5b737917fddf83d4a9a38b947126cf8ddfad /winsup/cygwin/sigproc.cc | |
parent | 8711eddd80efc5f05f19da613ce3ad7ebc66aa35 (diff) | |
download | cygnal-445d5ce8fcffed71f4349c723b707dc779fe1cc2.tar.gz cygnal-445d5ce8fcffed71f4349c723b707dc779fe1cc2.tar.bz2 cygnal-445d5ce8fcffed71f4349c723b707dc779fe1cc2.zip |
* init.cc (dll_entry): Remove exit code setting.
* pinfo.cc (pinfo::init): Initialize exitcode to unset state rather than
SIGTERM.
(proc_waiter): Detect if exit code is unset and use status from
GetExitCodeProcess.
* sigproc.cc (child_info::sync): Remove exit code detection here since
proc_waiter now (again) detects it.
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r-- | winsup/cygwin/sigproc.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index b5a281530..db4997b88 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -798,13 +798,6 @@ child_info::sync (pinfo& vchild, DWORD howlong) case WAIT_OBJECT_0 + 1: if (WaitForSingleObject (subproc_ready, 0) == WAIT_OBJECT_0) sigproc_printf ("should never happen. noticed subproc_ready after process exit"); - else - { - DWORD exitcode = 0; - (void) GetExitCodeProcess (vchild.hProcess, &exitcode); - vchild->exitcode = (exitcode & 0xff) << 8; - sigproc_printf ("non-cygwin exit value is %p", exitcode); - } res = false; break; default: |