httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgaudet-list-new-ht...@arctic.org>
Subject Re: Linux 2.3.99/2.4 Heads Up
Date Wed, 29 Mar 2000 20:02:48 GMT


On Tue, 21 Mar 2000 pg@sweng.stortek.com wrote:

> In a recent note, Dean Gaudet said:
> 
> > Date: Tue, 21 Mar 2000 16:21:16 -0800 (PST)
> > 
> > > Martin Pool wrote:
> > > > 
> > > > It certainly is strange.  Is there any way to pass file descriptors
> > > > between processes aside from SysV IPC (and inheritance)?
> > 
> > oh yeah, the NCSA HTTPd method was to open("/dev/$ppid/fd/$foo") in the
> > child.
> > 
> Does this work on any OS other than Linux?  (And isn't it actually
> /dev/proc/$ppid/fd/$foo?)  And how does the parent process create the
> descriptor?  pipe()?

yeah it's /proc/$ppid/fd/$foo

and the parent passes the descriptor to the child via a pipe or something
like that

this method doesn't actually pass the fd, it's subtly different.

no i doubt it works on many other unixes.

> Are sockets not a solution?  Or is the objective to pass a handle to
> an existing descriptor, not to create a new descriptor?

there's at least 3 ways to do this on linux now.  at the time of NCSA
httpd, the above was the only option.

Dean


Mime
View raw message