Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 5 Oct 2001 05:36:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 5 Oct 2001 05:36:13 -0400 Received: from my.nada.kth.se ([130.237.226.101]:40868 "EHLO my.nada.kth.se") by vger.kernel.org with ESMTP id ; Fri, 5 Oct 2001 05:36:02 -0400 Date: Fri, 5 Oct 2001 11:36:28 +0200 (MET DST) Message-Id: <200110050936.LAA14156@my.nada.kth.se> From: "=?ISO-8859-1?Q?Mattias Engdeg=E5rd?=" To: pmenage@ensim.com CC: linux-kernel@vger.kernel.org In-Reply-To: (message from Paul Menage on Thu, 04 Oct 2001 13:39:36 -0700) Subject: Re: [PATCH][RFC] Pollable /proc// - avoid SIGCHLD/poll() races Content-Type: text/plain; charset=iso-8859-1 In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Paul Menage wrote: >Except that this enhancement is not completely safe, as if you get more >than 1024 children reaped (assuming you send two bytes of pid and two >bytes of status) between checks of the pipe, you'll lose notifications. Obviously, but the cases where the number of children is bounded below 1024 are rather frequent >At least if you're only using the pipe to stop select() from blocking, >you don't care about overflowing the pipe as there's no important >information in there anyway. sure, but then you have to put the pid/exit status somewhere else and do some signal blocking/unblocking. In either case, it's portable, which polling on /proc/pid isn't - 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/