> > Yes, yes, yes it was a bad suggestion. Sorry about that. > I still didn't complete this section, looking for a clean solution to find > a way to close only the fd that keeps the socket busy. > So far you can use the closing fds in loop -- at least it works. yuck... you'd either have to find some way to extract that information directly from apache, or loop through all the file descriptors calling getsockname() and then close any descriptor connected to port 80/443/? (depends how your daemon is setup, if you've got multiple Listen statements you will have to close multiple sockets ... but normally it would just be one or two (port 0.0.0.0:80 and/or 0.0.0.0:443) ---------------------------------------------------------------------- [EMAIL PROTECTED] | Don't go around saying the world owes you a living; http://BareMetal.com/ | the world owes you nothing; it was here first. web hosting since '95 | - Mark Twain
- Re: fork inherits socket connection Stas Bekman
- Re: fork inherits socket connection Jeremy Howard
- Re: fork inherits socket connection Stas Bekman
- Re: fork inherits socket connection Stas Bekman
- Re: fork inherits socket connection Vivek Khera
- Re: fork inherits socket connection Stas Bekman
- Re: fork inherits socket connection Kees Vonk 7249 24549
- Re: fork inherits socket connection Stas Bekman
- Re: fork inherits socket connection Kees Vonk 7249 24549
- Re: fork inherits socket connection Stas Bekman
- Re: fork inherits socket connection Tom Brown
- Re: fork inherits socket connection Stas Bekman
- Re: fork inherits socket connection Stas Bekman
- Re: fork inherits socket connection Kees Vonk 7249 24549
- Re: fork inherits socket connection Stas Bekman
- Re: fork inherits socket connection Kees Vonk 7249 24549
- Re: fork inherits socket connection Stas Bekman
- Re: fork inherits socket connection Rafael Caceres
- Re: fork inherits socket connection Stas Bekman
- Re: fork inherits socket connection Bill Moseley
- Re: fork inherits socket connection Bill Moseley