From owner-freebsd-ports Mon Mar 10 22:25: 5 2003 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BDA637B401; Mon, 10 Mar 2003 22:25:04 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id C01BF43F75; Mon, 10 Mar 2003 22:25:02 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.8/8.12.8) with ESMTP id h2B6Oksf002502; Tue, 11 Mar 2003 07:24:52 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: "Simon 'portlint' Schubert" Cc: Larry Rosenman , Conrad Sabatier , freebsd-current@FreeBSD.ORG, freebsd-ports@FreeBSD.ORG Subject: Re: bash2 or devfs problem? From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 11 Mar 2003 02:24:23 +0100." <20030311022423.53b77f6d.corecode@corecode.ath.cx> Date: Tue, 11 Mar 2003 07:24:46 +0100 Message-ID: <2501.1047363886@critter.freebsd.dk> Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In message <20030311022423.53b77f6d.corecode@corecode.ath.cx>, "Simon 'portlint ' Schubert" writes: >> These files, conventionally called /dev/fd/0, /dev/fd/1, /dev/fd/2, >> and so on, refer to files accessible through file descriptors. If file >> descriptor n is open, these two system calls have the same effect: >> fd = open("/dev/fd/n",mode); >> fd = dup(n); > >i read that only concerning *open* fds. (you can't dup a closed >[non-existant] fd). > >furthermore i think there was a patch floating around addressing exactly >this issue. perhaps it was even committed (i'm too lazy to search for >it). solution was to test in configure for additional fds accessible >from /dev/fd/* and build without that feature if not. Well, as far as I know we don't need a patch, we just need to mount fdescfs then. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message