Date: Sun, 11 Jul 2004 03:49:52 GMT From: David Xu <davidxu@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 57037 for review Message-ID: <200407110349.i6B3nqBt055596@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=57037 Change 57037 by davidxu@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");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407110349.i6B3nqBt055596>