From owner-cvs-src@FreeBSD.ORG Wed Jul 14 21:01:32 2004 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 92FA916A4CE; Wed, 14 Jul 2004 21:01:32 +0000 (GMT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F1A943D62; Wed, 14 Jul 2004 21:01:32 +0000 (GMT) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 72DEA5C8E1; Wed, 14 Jul 2004 14:01:32 -0700 (PDT) Date: Wed, 14 Jul 2004 14:01:32 -0700 From: Alfred Perlstein To: Don Lewis Message-ID: <20040714210132.GI95729@elvis.mu.org> References: <20040714191118.GF95729@elvis.mu.org> <200407142037.i6EKba0E026064@gw.catspoiler.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200407142037.i6EKba0E026064@gw.catspoiler.org> User-Agent: Mutt/1.4.2.1i cc: rwatson@FreeBSD.org cc: src-committers@FreeBSD.org cc: dfr@nlsystems.com cc: cvs-all@FreeBSD.org cc: cvs-src@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_event.c src/sys/sys eventvar.h 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, 14 Jul 2004 21:01:32 -0000 * Don Lewis [040714 13:38] wrote: > On 14 Jul, Alfred Perlstein wrote: > > * Doug Rabson [040714 12:01] wrote: > > >> Seems to me that the best thing to do is to defer the psigio() to a > >> taskqueue that will run in a simpler locking environment. > > > > I was thinking that, but I'm worried about "stale delivery", > > perhaps we need to record the generation count (process start time) > > in the sigio as well as the request sent, so that we don't send > > a signal to the wrong process. > > This is already handled in the sigio infrastructure. Both struct proc > and struct pgrp have a list of their potential sigio sources. When the > process or process group goes away, the exit code disables sigio > delivery. Yes, but if the delivery of the signal becomes async, then we lose this. -- - Alfred Perlstein - Research Engineering Development Inc. - email: bright@mu.org cell: 408-480-4684