From owner-cvs-src@FreeBSD.ORG Wed Aug 20 06:43:36 2003 Return-Path: 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 8338D16A4BF; Wed, 20 Aug 2003 06:43:36 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AA8643FBD; Wed, 20 Aug 2003 06:43:36 -0700 (PDT) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h7KDhZ0U061650; Wed, 20 Aug 2003 06:43:35 -0700 (PDT) (envelope-from davidxu@repoman.freebsd.org) Received: (from davidxu@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h7KDhZxY061649; Wed, 20 Aug 2003 06:43:35 -0700 (PDT) Message-Id: <200308201343.h7KDhZxY061649@repoman.freebsd.org> From: David Xu Date: Wed, 20 Aug 2003 06:43:35 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libpthread/thread thr_sig.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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: Wed, 20 Aug 2003 13:43:37 -0000 davidxu 2003/08/20 06:43:35 PDT FreeBSD src repository Modified files: lib/libpthread/thread thr_sig.c Log: _thr_sig_check_pending is also called by scope system thread when it leaves critical region, we wrap some syscalls for thread cancellation point, and when syscalls returns, we call _thr_leave_cancellation_point, at the time if a signal comes in, it would be buffered, and when the thread leaves _thr_leave_cancellation_point, buffered signals will be processed, to avoid messing up normal syscall errno, we should save and restore errno around signal handling code. Revision Changes Path 1.69 +3 -0 src/lib/libpthread/thread/thr_sig.c