PERFORCE change 57037 for review
David Xu
davidxu at FreeBSD.org
Sat Jul 10 20:49:54 PDT 2004
http://perforce.freebsd.org/chv.cgi?CH=57037
Change 57037 by davidxu at davidxu_alona on 2004/07/11 03:49:34
Add a bit flag THR_SIGNAL_THREAD, libthread_db uses it to identify a
signal thread.
Affected files ...
.. //depot/projects/davidxu_ksedbg/src/lib/libpthread/thread/thr_private.h#7 edit
.. //depot/projects/davidxu_ksedbg/src/lib/libpthread/thread/thr_sig.c#3 edit
Differences ...
==== //depot/projects/davidxu_ksedbg/src/lib/libpthread/thread/thr_private.h#7 (text+ko) ====
@@ -430,6 +430,7 @@
int prio;
int suspend;
#define THR_STACK_USER 0x100 /* 0xFF reserved for <pthread.h> */
+#define THR_SIGNAL_THREAD 0x200 /* This is a signal thread */
int flags;
void *arg_attr;
void (*cleanup_attr) ();
==== //depot/projects/davidxu_ksedbg/src/lib/libpthread/thread/thr_sig.c#3 (text+ko) ====
@@ -232,6 +232,7 @@
pthread_sigmask(SIG_SETMASK, &sigset, &oldset);
pthread_attr_init(&attr);
pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM);
+ attr->flags |= THR_SIGNAL_THREAD;
/* sigmask will be inherited */
if (pthread_create(&_thr_sig_daemon, &attr, sig_daemon, NULL))
PANIC("can not create signal daemon thread!\n");
More information about the p4-projects
mailing list