Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266665AbTGGUEN (ORCPT ); Mon, 7 Jul 2003 16:04:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S267186AbTGGUEN (ORCPT ); Mon, 7 Jul 2003 16:04:13 -0400 Received: from ncc1701.cistron.net ([62.216.30.38]:63248 "EHLO ncc1701.cistron.net") by vger.kernel.org with ESMTP id S266665AbTGGUEK (ORCPT ); Mon, 7 Jul 2003 16:04:10 -0400 From: "Miquel van Smoorenburg" Subject: Re: epoll vs stdin/stdout Date: Mon, 7 Jul 2003 20:18:45 +0000 (UTC) Organization: Cistron Group Message-ID: References: <20030707154823.GA8696@srv.foo21.com> <20030707194736.GF9328@srv.foo21.com> <20030707200315.GA10939@mail.jlokier.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Trace: ncc1701.cistron.net 1057609125 14410 62.216.29.200 (7 Jul 2003 20:18:45 GMT) X-Complaints-To: abuse@cistron.nl X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: miquels@cistron-office.nl (Miquel van Smoorenburg) To: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 595 Lines: 9 In article <20030707200315.GA10939@mail.jlokier.co.uk>, Jamie Lokier wrote: >Unfortunately I cannot think of a way for a process to know, in >general, whether two fds that it is passed correspond to the same file >*. Well, apart from trying epoll on it and seeing what happens :/ fstat() and compare st_dev and st_ino Mike. - 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/