From owner-freebsd-bugs@FreeBSD.ORG Tue Aug 31 05:10:05 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C44110656AE for ; Tue, 31 Aug 2010 05:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1C2A08FC0A for ; Tue, 31 Aug 2010 05:10:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7V5A4eT087133 for ; Tue, 31 Aug 2010 05:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7V5A4wZ087131; Tue, 31 Aug 2010 05:10:04 GMT (envelope-from gnats) Date: Tue, 31 Aug 2010 05:10:04 GMT Message-Id: <201008310510.o7V5A4wZ087131@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: David Xu Cc: Subject: Re: kern/150138: [patch] signal sent to stopped, traced process not immediately handled on continue X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: David Xu List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2010 05:10:05 -0000 The following reply was made to PR kern/150138; it has been noted by GNATS. From: David Xu To: Dan McNulty Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: kern/150138: [patch] signal sent to stopped, traced process not immediately handled on continue Date: Tue, 31 Aug 2010 13:00:28 +0000 Dan McNulty wrote: > On Tue, Aug 31, 2010 at 6:09 AM, David Xu wrote: >> User & wrote: >> >>>> Fix: >>> The attached patch ( to CURRENT ) takes a stab at fixing the problem. The >>> patch >>> adds code so that even if the process is being traced, a signal sent to a >>> interruptibly sleeping thread wakes up the thread so it will handle the >>> signal >>> when the process leaves the stopped state. The added code was copied from >>> the >>> code that handled stopped, non-traced processes later in the same >>> function. >> No patch ? >> > > Sorry, in trying to figure out send-pr, didn't actually attach the > patch and other files. > > They should be attached now. > I think the patch is right, thanks!