From 48befd8305960ebde647a9974726d1b5b43a6e8c Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 12 Jan 2005 18:05:07 +0000 Subject: * pinfo.cc (pinfo::exit): Don't assume that this == myself. --- winsup/cygwin/pinfo.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'winsup/cygwin/pinfo.cc') 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; -- cgit v1.1