From owner-p4-projects@FreeBSD.ORG Sun Jul 11 03:49:53 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 6248B16A4D0; Sun, 11 Jul 2004 03:49:53 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 264DF16A4CE for ; Sun, 11 Jul 2004 03:49:53 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2022543D1F for ; Sun, 11 Jul 2004 03:49:53 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i6B3nrKm055599 for ; Sun, 11 Jul 2004 03:49:53 GMT (envelope-from davidxu@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6B3nqBt055596 for perforce@freebsd.org; Sun, 11 Jul 2004 03:49:52 GMT (envelope-from davidxu@freebsd.org) Date: Sun, 11 Jul 2004 03:49:52 GMT Message-Id: <200407110349.i6B3nqBt055596@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to davidxu@freebsd.org using -f From: David Xu To: Perforce Change Reviews Subject: PERFORCE change 57037 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jul 2004 03:49:54 -0000 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 */ +#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");