From owner-cvs-all Wed Jun 30 13:53:24 1999 Delivered-To: cvs-all@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 111BA156B4; Wed, 30 Jun 1999 13:53:02 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id OAA00816; Wed, 30 Jun 1999 14:53:00 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id OAA32535; Wed, 30 Jun 1999 14:51:47 -0600 (MDT) Message-Id: <199906302051.OAA32535@harmony.village.org> To: Poul-Henning Kamp Subject: Re: cvs commit: src/sys/kern init_main.c kern_fork.c kern_linker.c vfs_aio.c src/sys/sys proc.h Cc: "Brian F. Feldman" , Julian Elischer , Garrett Wollman , Peter Wemm , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org In-reply-to: Your message of "Wed, 30 Jun 1999 20:04:33 +0200." <43774.930765873@critter.freebsd.dk> References: <43774.930765873@critter.freebsd.dk> Date: Wed, 30 Jun 1999 14:51:47 -0600 From: Warner Losh Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk In message <43774.930765873@critter.freebsd.dk> Poul-Henning Kamp writes: : So if we have decided to make struct proc a stable storage kind of : thing, then holding pointers is perfectly ok (with the addition of : a serial number, p_pid wont do). It is the move to stable storage : that has me concerned. Wouldn't a reference count work? That way you could mark the process as dead and when something wakes up that is holding a reference to the pid, it could check to see if the process was alive. If not, it could release its reference. The pid wouldn't be reused until the reference count reached zero... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message