You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Wojtek <so...@nemezis.ipan.lublin.pl> on 1999/04/03 18:59:00 UTC

[PATCH] restarting without loosing sockets

Hey !

I have written a patch to restart apache (FULLY - killing the previous one
and starting a completely new one) without loosing the listen sockets.

I simply pass the old listen sockets through sendmsg/recvmsg to the new
apache.

Please tell me if there is something wrong with the patch (I will correct
it), and send me info on updating the documentation (I'll be happy to do
that too).

The patch was applied to Apache 1.3.6.

Greetings,
Wojtek

Re: [PATCH] restarting without loosing sockets

Posted by Dean Gaudet <dg...@arctic.org>.
Interesting... I wonder how portable this is.  We could go steal NCSA's fd
passing code, which has been ported left and right... and give it a try. 
I just wonder how many systems mess up passing listen() sockets :)

Dean

On Sat, 3 Apr 1999, Wojtek wrote:

> Hey !
> 
> I have written a patch to restart apache (FULLY - killing the previous one
> and starting a completely new one) without loosing the listen sockets.
> 
> I simply pass the old listen sockets through sendmsg/recvmsg to the new
> apache.
> 
> Please tell me if there is something wrong with the patch (I will correct
> it), and send me info on updating the documentation (I'll be happy to do
> that too).
> 
> The patch was applied to Apache 1.3.6.
> 
> Greetings,
> Wojtek
>