From owner-freebsd-threads@FreeBSD.ORG Sat Apr 26 07:52:53 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C390437B401 for ; Sat, 26 Apr 2003 07:52:53 -0700 (PDT) Received: from mail.highway.ne.jp (mail.highway.ne.jp [210.166.100.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 613A943FA3 for ; Sat, 26 Apr 2003 07:52:52 -0700 (PDT) (envelope-from kaakun@highway.ne.jp) Received: from face.violasystems.net (ppp0635.vc-tyo.hdd.co.jp [219.100.26.35]) by mail.highway.ne.jp (8.9.3p2/3.7W03042516) with SMTP id XAA29861 for ; Sat, 26 Apr 2003 23:52:50 +0900 (JST) Date: Sat, 26 Apr 2003 23:52:40 +0900 From: Kazuaki Oda To: freebsd-threads@freebsd.org Message-Id: <20030426235240.2f950c8e.kaakun@highway.ne.jp> X-Mailer: Sylpheed version 0.8.11 (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: short libpthread patch X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Apr 2003 14:52:54 -0000 Hi, all. I'm not a hacker, but following patch resolves a signal delivering problem of my short test program. Is it correct? diff -cr libpthread.orig/thread/thr_sig.c libpthread/thread/thr_sig.c *** libpthread.orig/thread/thr_sig.c Fri Apr 18 14:04:16 2003 --- libpthread/thread/thr_sig.c Sat Apr 26 23:37:20 2003 *************** *** 291,297 **** * Grab the next thread before possibly destroying * the link entry. */ ! pthread_next = TAILQ_NEXT(pthread, pqe); if ((pthread->state == PS_SIGWAIT) && sigismember(pthread->data.sigwait, sig)) { --- 291,297 ---- * Grab the next thread before possibly destroying * the link entry. */ ! pthread_next = TAILQ_NEXT(pthread, tle); if ((pthread->state == PS_SIGWAIT) && sigismember(pthread->data.sigwait, sig)) { -- Kazuaki Oda