Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262124AbTELNKl (ORCPT ); Mon, 12 May 2003 09:10:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262126AbTELNKl (ORCPT ); Mon, 12 May 2003 09:10:41 -0400 Received: from www.wireboard.com ([216.151.155.101]:5291 "EHLO varsoon.wireboard.com") by vger.kernel.org with ESMTP id S262124AbTELNKj (ORCPT ); Mon, 12 May 2003 09:10:39 -0400 To: Chris Friesen Cc: Muli Ben-Yehuda , Linux Kernel Mailing List Subject: Re: [RFC] new syscall to allow notification when arbitrary pids die References: <3EBC9C62.5010507@nortelnetworks.com> <20030510073842.GA31003@actcom.co.il> <3EBF144E.7050608@nortelnetworks.com> <3EBF240A.4050706@nortelnetworks.com> From: Doug McNaught Date: 12 May 2003 09:23:12 -0400 In-Reply-To: Chris Friesen's message of "Mon, 12 May 2003 00:33:14 -0400" Message-ID: User-Agent: Gnus/5.0806 (Gnus v5.8.6) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 977 Lines: 19 Chris Friesen writes: > Doug McNaught wrote: > > Rather than a new syscall, what about a magic file or device that you > > can poll()? > > This is definately an option to consider. The problem that I see with > this is that when you are trying to monitor large numbers of processes > you have to worry about running out of file descriptors, and select() > is no longer as happy. No reason to have one FD per process monitored. Just a single FD, to which you can write() a control string to to add or remove a process from the list, and for which read() yields a small data record describing the process event that just happened. It's a bit plan-9ish but there's nothing wrong with that... -Doug - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/