aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-11-18 02:55:43 +0000
committerChristopher Faylor <me@cgf.cx>2004-11-18 02:55:43 +0000
commit36701e93efda434622de0157db64da72922ab4ac (patch)
tree2d18b00db3e3bf6c93d7387e2f85c7d8eeafad30
parent75faeb397425f73ca193aba96c61c4e8fc3e3506 (diff)
downloadnewlib-36701e93efda434622de0157db64da72922ab4ac.zip
newlib-36701e93efda434622de0157db64da72922ab4ac.tar.gz
newlib-36701e93efda434622de0157db64da72922ab4ac.tar.bz2
race
-rw-r--r--winsup/cygwin/cygthread.h2
-rw-r--r--winsup/cygwin/pinfo.cc3
2 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/cygthread.h b/winsup/cygwin/cygthread.h
index c97a482..dfeef90 100644
--- a/winsup/cygwin/cygthread.h
+++ b/winsup/cygwin/cygthread.h
@@ -28,7 +28,7 @@ class cygthread
static DWORD WINAPI simplestub (VOID *);
static DWORD main_thread_id;
static const char * name (DWORD = 0);
- void release () { inuse = false; }
+ void release () { __name = NULL; inuse = false; }
cygthread (LPTHREAD_START_ROUTINE, LPVOID, const char *);
cygthread () {};
static void init ();
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index 7f5b404..1d78d5a 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -660,7 +660,8 @@ _pinfo::cmdline (size_t& n)
static DWORD WINAPI
proc_waiter (void *arg)
{
- pinfo vchild = *(pinfo *) arg;
+ pinfo& vchild = *(pinfo *) arg;
+ // SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_NORMAL);
siginfo_t si;
si.si_signo = SIGCHLD;