From owner-cvs-src@FreeBSD.ORG Mon Oct 23 20:07:56 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0270C16A407; Mon, 23 Oct 2006 20:07:56 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A61643D8F; Mon, 23 Oct 2006 20:07:46 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k9NK7kPL018355; Mon, 23 Oct 2006 20:07:46 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k9NK7kkh018348; Mon, 23 Oct 2006 20:07:46 GMT (envelope-from jhb) Message-Id: <200610232007.k9NK7kkh018348@repoman.freebsd.org> From: John Baldwin Date: Mon, 23 Oct 2006 20:07:46 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/lib/libc_r/uthread uthread_select.c uthread_sig.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Oct 2006 20:07:56 -0000 jhb 2006-10-23 20:07:46 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) lib/libc_r/uthread uthread_select.c uthread_sig.c Log: MFC: Various uthread fixes: - Delay setting wakeup time until after poll array has been allocated. Blocking on the malloc spinlock would cause the select timeout to be lost. (uthread_select.c 1.22) - Delay unblocking signal and restoring process signal mask until the thread signal mask has been updated to avoid stack overflow during signal bursts. Don't block signal forever if no threads can currently handle signal. Check for pending signal after direct invocation of signal handler. (uthread_select.c 1.47) - Backout unblocking of signal if no threads can currently handle it. The check for pending signal after direct invocation of signal handler is sufficient. (uthread_select.c 1.48) Approved by: re (mux, bmah) Revision Changes Path 1.21.14.1 +20 -20 src/lib/libc_r/uthread/uthread_select.c 1.46.10.1 +38 -17 src/lib/libc_r/uthread/uthread_sig.c