[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: exec server and /dev/fd/N

From: olafBuddenhagen
Subject: Re: exec server and /dev/fd/N
Date: Sat, 29 May 2010 15:04:28 +0200
User-agent: Mutt/1.5.19 (2009-01-05)


On Wed, May 26, 2010 at 04:45:12PM +0200, Carl Fredrik Hammar wrote:
> > On 26/05/10 09:32, olafBuddenhagen@gmx.net wrote:

> > > IIRC my major concern with this approach was that this way, the
> > > original task has to guess what file name will be valid in the new
> > > task's context... I don't remember though what my conclusion was
> > > regarding this being better or worse than doing the guessing in
> > > exec :-(

> But since exec still checks that the identity ports are the same and
> falls back to using a "/dev/fd/N" path (to a new FD) in that case, it
> is almost impossible to end up with the wrong file.

Hm, good point... A situation where the new task runs in a different
name space *and* needs a "real" filename, is not terribly likely...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]