[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
hurd/libpthread sysdeps/hurd/pt-destroy-specifi...
From: |
Neal H Walfield |
Subject: |
hurd/libpthread sysdeps/hurd/pt-destroy-specifi... |
Date: |
Sat, 12 Oct 2002 20:58:03 -0400 |
CVSROOT: /cvsroot/hurd
Module name: hurd
Changes by: Neal H Walfield <address@hidden> 02/10/12 20:58:03
Modified files:
libpthread/sysdeps/hurd: pt-destroy-specific.c
libpthread : ChangeLog
Log message:
2002-10-12 Neal H. Walfield <address@hidden>
* sysdeps/hurd/pt-destroy-specific.c (__pthread_destroy_specific):
Only call the destructor if there is one set.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/hurd/hurd/libpthread/sysdeps/hurd/pt-destroy-specific.c.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/hurd/hurd/libpthread/ChangeLog.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
Patches:
Index: hurd/libpthread/ChangeLog
diff -u hurd/libpthread/ChangeLog:1.1 hurd/libpthread/ChangeLog:1.2
--- hurd/libpthread/ChangeLog:1.1 Thu Oct 10 19:05:06 2002
+++ hurd/libpthread/ChangeLog Sat Oct 12 20:58:03 2002
@@ -1,3 +1,8 @@
+2002-10-12 Neal H. Walfield <address@hidden>
+
+ * sysdeps/hurd/pt-destroy-specific.c (__pthread_destroy_specific):
+ Only call the destructor if there is one set.
+
2002-10-10 Neal H. Walfield <address@hidden>
* libpthread.a: It is _cthread_init_routine, not _cthread_init.
Index: hurd/libpthread/sysdeps/hurd/pt-destroy-specific.c
diff -u hurd/libpthread/sysdeps/hurd/pt-destroy-specific.c:1.1
hurd/libpthread/sysdeps/hurd/pt-destroy-specific.c:1.2
--- hurd/libpthread/sysdeps/hurd/pt-destroy-specific.c:1.1 Thu Oct 10
19:05:05 2002
+++ hurd/libpthread/sysdeps/hurd/pt-destroy-specific.c Sat Oct 12 20:58:03 2002
@@ -53,12 +53,14 @@
value = ihash_find (thread->thread_specifics, i);
if (value)
{
- seen_one = 1;
-
err = ihash_remove (thread->thread_specifics, i);
assert (err == 1);
- __pthread_key_destructors[i] (value);
+ if (__pthread_key_destructors[i])
+ {
+ seen_one = 1;
+ __pthread_key_destructors[i] (value);
+ }
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- hurd/libpthread sysdeps/hurd/pt-destroy-specifi...,
Neal H Walfield <=