X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;ds=sidebyside;f=cprogs%2Fcgi-fcgi-interp.c;h=bfcfd9afe546e0719ceb519cf24cd2f7e7e1698a;hb=c72a0f46e7e39f4106fc9967cd3d233e3c97b504;hp=d2681cfc861a068cd5cbe4d8e7003f7c466c23c0;hpb=55066cde303ef88e7e5941496b21e794708e55ba;p=chiark-utils.git diff --git a/cprogs/cgi-fcgi-interp.c b/cprogs/cgi-fcgi-interp.c index d2681cf..bfcfd9a 100644 --- a/cprogs/cgi-fcgi-interp.c +++ b/cprogs/cgi-fcgi-interp.c @@ -2,7 +2,31 @@ * "Interpreter" that you can put in #! like this * #!/usr/bin/cgi-fcgi-interp [] * #!/usr/bin/cgi-fcgi-interp [], + */ +/* + * 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 + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * 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 #! * line, like a CGI program. But the script inside will be executed * via in an fcgi context. @@ -26,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. @@ -66,10 +98,20 @@ * - check for and maybe create * - stat and lstat the