diff options
author | Christopher Faylor <cgf@redhat.com> | 2004-11-18 02:55:43 +0000 |
---|---|---|
committer | Christopher Faylor <cgf@redhat.com> | 2004-11-18 02:55:43 +0000 |
commit | e1b11ebe60ac25d5c9f92c239f75c493d0b2bf3a (patch) | |
tree | d84d3b4274b574f384a28dcc560d7106bd1518d7 | |
parent | bd280bf368b8a2f27a0385f62c76bb39d4e16a0d (diff) | |
download | gdb-e1b11ebe60ac25d5c9f92c239f75c493d0b2bf3a.tar.gz |
race
-rw-r--r-- | winsup/cygwin/cygthread.h | 2 | ||||
-rw-r--r-- | winsup/cygwin/pinfo.cc | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/cygthread.h b/winsup/cygwin/cygthread.h index c97a482f47e..dfeef90de4b 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 7f5b404a1c0..1d78d5a845c 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; |