* dcrt0.cc (dll_crt0_0): Eliminate muto::init call.

* sync.h (locker): New, currently unused class.
(muto::init): Eliminate.
* sync.cc (muto::init): Ditto.
(muto::init): Eliminate critical section lock and instead use name as a guard
to prevent against multiple attempts to initialize the same muto.
* pinfo.cc (pinfo::init): Set myself procinfo when not execing and pid matches
windows pid or cygwin pid.
This commit is contained in:
Christopher Faylor
2005-03-08 05:05:02 +00:00
parent 4534561877
commit 18edcecfbf
5 changed files with 30 additions and 23 deletions

View File

@@ -173,7 +173,8 @@ void
pinfo::init (pid_t n, DWORD flag, HANDLE h0)
{
h = NULL;
if (myself && n == myself->pid)
if (myself && !(flag & PID_EXECED)
&& (n == myself->pid || (DWORD) n == myself->dwProcessId))
{
procinfo = myself;
destroy = 0;