X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=cprogs%2Fcgi-fcgi-interp.c;h=ef48cfda3b80af8b02e6375639943f07558a44cf;hb=d4e42bf295490da6b6f4ab8d5249b158d774d450;hp=c08ba9da457d0e153bf52c2c04c1121487c2235e;hpb=96f381820f6b2f532a1f166b628ff7f5f7e12908;p=chiark-utils.git diff --git a/cprogs/cgi-fcgi-interp.c b/cprogs/cgi-fcgi-interp.c index c08ba9d..ef48cfd 100644 --- a/cprogs/cgi-fcgi-interp.c +++ b/cprogs/cgi-fcgi-interp.c @@ -7,6 +7,7 @@ * cgi-fcgi-interp.[ch] - C helpers common to the whole of chiark-utils * * Copyright 2016 Ian Jackson + * Copyright 1982,1986,1993 The Regents of the University of California * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,6 +23,8 @@ * License along with this file; if not, consult the Free Software * Foundation's website at www.fsf.org, or the GNU Project website at * www.gnu.org. + * + * See below for a BSD 3-clause notice regarding timespeccmp. */ /* * The result is a program which looks, when executed via the #! @@ -47,6 +50,14 @@ * speedy, the specified number of servers is started * right away.) The default is 4. * + * -c + * Stale server check interval, in seconds. The worker + * process group will get a SIGTERM when it is no longer + * needed to process new requests. Ideally it would continue + * to serve any existing requests. The SIGTERM will arrive no + * earlier than after the last request arrived at + * the containing webserver. Default is 300. + * * -D * Debug mode. Do not actually run program. Instead, print * out what we would do. @@ -58,14 +69,13 @@ * cgi-fcgi-interp automatically expires old sockets, including * ones where the named script is out of date. */ - /* * Uses one of two directories * /var/run/user//cgi-fcgi-interp/ * ~/.cgi-fcgi-interp// * and inside there uses these paths * s - * g + * l used to lock around garbage collection * * If -M is not specified then an initial substricg of the * lowercase hex of the sha256 of the