diff options
author | Christopher Faylor <me@cgf.cx> | 2002-09-16 16:09:54 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-09-16 16:09:54 +0000 |
commit | d04cf16c52c845c683c901b2aa201445f6d9e1c4 (patch) | |
tree | 118fcf16cd58eaafa092c39ea635dab63e88e54b /winsup/cygwin/init.cc | |
parent | 4e786173219dedb425672f495a36adbff68273f7 (diff) | |
download | cygnal-d04cf16c52c845c683c901b2aa201445f6d9e1c4.tar.gz cygnal-d04cf16c52c845c683c901b2aa201445f6d9e1c4.tar.bz2 cygnal-d04cf16c52c845c683c901b2aa201445f6d9e1c4.zip |
* init.cc: Cleanup slightly and remove obsolete code.
Diffstat (limited to 'winsup/cygwin/init.cc')
-rw-r--r-- | winsup/cygwin/init.cc | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/winsup/cygwin/init.cc b/winsup/cygwin/init.cc index 2e08f11f2..ca5e7176d 100644 --- a/winsup/cygwin/init.cc +++ b/winsup/cygwin/init.cc @@ -1,6 +1,6 @@ /* init.cc - Copyright 1996, 1997, 1998, 1999, 2000, 2001 Red Hat, Inc. + Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. This file is part of Cygwin. @@ -38,23 +38,10 @@ WINAPI dll_entry (HANDLE h, DWORD reason, void *static_load) pthread *thisthread = (pthread *) TlsGetValue ( user_data->threadinterface->thread_self_dwTlsIndex); if (thisthread) { - /* Some non-pthread call created this thread, + /* Some non-pthread call created this thread, * but we need to clean it up */ thisthread->exit(0); } -#if 0 // FIXME: REINSTATE SOON - waitq *w; - if ((w = waitq_storage.get ()) != NULL) - { - if (w->thread_ev != NULL) - { - system_printf ("closing %p", w->thread_ev); - (void) CloseHandle (w->thread_ev); - } - memset (w, 0, sizeof(*w)); // FIXME: memory leak - } - // FIXME: Need to add other per_thread stuff here -#endif break; } return 1; |