Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Mar 2003 02:24:23 +0100
From:      Simon 'portlint' Schubert <corecode@corecode.ath.cx>
To:        Larry Rosenman <ler@lerctr.org>
Cc:        Poul-Henning Kamp <phk@phk.freebsd.dk>, Conrad Sabatier <conrads@cox.net>, freebsd-current@FreeBSD.ORG, freebsd-ports@FreeBSD.ORG
Subject:   Re: bash2 or devfs problem?
Message-ID:  <20030311022423.53b77f6d.corecode@corecode.ath.cx>
In-Reply-To: <13630000.1047341994@lerlaptop.iadfw.net>
References:  <5257.1047339488@critter.freebsd.dk> <13630000.1047341994@lerlaptop.iadfw.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--=.M_NnSk,zI1BVX.
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Lately Larry Rosenman told:

> --On Tuesday, March 11, 2003 00:38:08 +0100 Poul-Henning Kamp 
> <phk@phk.freebsd.dk> wrote:
> > In message <XFMail.20030310155011.conrads@cox.net>, Conrad Sabatier
> > writes:
> >> Apparently, the nodes for the named pipes are not being created as they
> >> should.
> >>
> >> Is this a bash problem, or something in devfs not working as expected?
> > That's a good question...
> >
> > Has anybody found out what the standards conformant thing is for /dev/fd ?
> >
> > presently we do only 0,1 & 2, with the std{in,out,err} symlinks.
> >
> > If we are required to do all filedescriptors, we should do so with
> > fdescfs by default.
> It is supposed to (based on MY reading of the fd(4) man page on a UnixWare 
> (SysVr5) system)
> be ALL filedescriptors.
> 
> this paragraph seems to be the cogent part:
> 
> 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.

cheers
  simon

-- 
/"\   http://corecode.ath.cx/#donate
\ /
 \     ASCII Ribbon Campaign
/ \  Against HTML Mail and News

--=.M_NnSk,zI1BVX.
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE+bTrKr5S+dk6z85oRArK3AKCfcXbjf7jzWe5ps+/nFvs922eqLwCgzDJQ
s/J2YrboK9YXFDanh3IPcqw=
=Jd3G
-----END PGP SIGNATURE-----

--=.M_NnSk,zI1BVX.--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030311022423.53b77f6d.corecode>