* cygthread.cc (cygthread::stub): Fix typo.
(cygthread::terminate): Don't zero thread handle prior to using it.
This commit is contained in:
parent
cf70a7e372
commit
ccefaab1d5
|
@ -1,3 +1,8 @@
|
||||||
|
2002-10-20 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* cygthread.cc (cygthread::stub): Fix typo.
|
||||||
|
(cygthread::terminate): Don't zero thread handle prior to using it.
|
||||||
|
|
||||||
2002-10-20 Christopher Faylor <cgf@redhat.com>
|
2002-10-20 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* sigproc.cc (wait_sig): Remove obsolete sigchld logic.
|
* sigproc.cc (wait_sig): Remove obsolete sigchld logic.
|
||||||
|
|
|
@ -45,7 +45,7 @@ cygthread::stub (VOID *arg)
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
if (!info->__name)
|
if (!info->__name)
|
||||||
system_printf ("errnoneous thread activation");
|
system_printf ("erroneous thread activation");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!info->func || initialized < 0)
|
if (!info->func || initialized < 0)
|
||||||
|
@ -319,8 +319,9 @@ cygthread::terminate ()
|
||||||
for (unsigned i = 0; i < NTHREADS; i++)
|
for (unsigned i = 0; i < NTHREADS; i++)
|
||||||
if (threads[i].h)
|
if (threads[i].h)
|
||||||
{
|
{
|
||||||
hthreads[n++] = threads[i].h;
|
hthreads[n] = threads[i].h;
|
||||||
TerminateThread (threads[i].h, 0);
|
threads[i].h = NULL;
|
||||||
|
TerminateThread (hthreads[n++], 0);
|
||||||
}
|
}
|
||||||
if (n)
|
if (n)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue