aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/pinfo.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-01-12 18:05:07 +0000
committerChristopher Faylor <me@cgf.cx>2005-01-12 18:05:07 +0000
commit48befd8305960ebde647a9974726d1b5b43a6e8c (patch)
tree6fef9b92df27f70c6bc3a40715565ef462257b8f /winsup/cygwin/pinfo.cc
parent2538a7ff9b5b6d1b196df0ccecb17b72276483f8 (diff)
downloadnewlib-48befd8305960ebde647a9974726d1b5b43a6e8c.zip
newlib-48befd8305960ebde647a9974726d1b5b43a6e8c.tar.gz
newlib-48befd8305960ebde647a9974726d1b5b43a6e8c.tar.bz2
* pinfo.cc (pinfo::exit): Don't assume that this == myself.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r--winsup/cygwin/pinfo.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index 689e10b..2e39ebb 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -130,7 +130,6 @@ pinfo::exit (DWORD n)
sigproc_terminate (); /* Just terminate signal and process stuff */
self->exitcode = n; /* We're really exiting. Record the UNIX exit code. */
}
- sigproc_printf ("1 hProcess %p, n %p, exitcode %p", hProcess, n, self->exitcode);
/* FIXME: There is a potential race between an execed process and its
parent here. I hated to add a mutex just for this, though. */
@@ -139,11 +138,8 @@ pinfo::exit (DWORD n)
add_rusage (&self->rusage_self, &r);
set_exit_state (PID_EXITED);
- sigproc_printf ("2 hProcess %p, n %p, exitcode %p, EXITCODE_EXEC %p", hProcess, n, self->exitcode, EXITCODE_EXEC);
if (n != EXITCODE_EXEC)
-{sigproc_printf ("3 hProcess %p, n %p, exitcode %p, EXITCODE_EXE %pC", hProcess, n, self->exitcode, EXITCODE_EXEC);
- myself->alert_parent (0);
-}
+ self->alert_parent (0);
_my_tls.stacklock = 0;
_my_tls.stackptr = _my_tls.stack;