On Thu, Feb 20, 2003 at 11:03:20AM -0700, Jonathan Corbet wrote: > In thinking about this, it occurred to me that you don't really have to > kill the main SCGI server process - you just have to make it kill off its > children and start over. The original scgi server module included a graceful restart mechanism. I ripped it out because it seemed unreliable and complicated. That, and I have a deep rooted hatred of signals. Having mod_scgi retry requests proved simpler and more reliable. However, on sites like LWN I can see the need for a better graceful restart. > Here's the patch, in case anybody can think of a better way. I'm not > running this production yet, but it performs nicely under heavy load on my > test box. I doubt it's something that anybody would want to merge > into a 1.0beta release, but, if it's useful to others, maybe it could go > in post 1.0. Your patch looks good. I'd be happy to include it after it gets battle tested. Neil