From owner-cvs-all@FreeBSD.ORG Wed Jul 14 20:37:48 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4A2E16A4CE; Wed, 14 Jul 2004 20:37:48 +0000 (GMT) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7410D43D1F; Wed, 14 Jul 2004 20:37:48 +0000 (GMT) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.12.11/8.12.11) with ESMTP id i6EKba0E026064; Wed, 14 Jul 2004 13:37:40 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <200407142037.i6EKba0E026064@gw.catspoiler.org> Date: Wed, 14 Jul 2004 13:37:36 -0700 (PDT) From: Don Lewis To: alfred@FreeBSD.org In-Reply-To: <20040714191118.GF95729@elvis.mu.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii 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-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jul 2004 20:37:49 -0000 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.