Re: concurrent servers

2006-10-11 Thread Roger McCalman
I wrote a patch for apache in the 1.3 days to take a list of fd's on the command line that were already bound to the required Listening sockets. This was so that I could a have a simple setuid wrapper for listening on port 80 which would then fork and exec apache after removing root privileges. Th

Re: concurrent servers

2006-10-11 Thread Gokul P. Nair
Very cool indeed! A quick 'man 2 bind' yeilded this:EINVAL The  socket  is  already  bound  to  an  address.   This may change in the future: see  linux/unix/sock.c for details.I'd be curious to find out what nginx does to circumvent this, atleast on linux.- Gokul- Original Message