X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-utils.git;a=blobdiff_plain;f=cprogs%2Fcgi-fcgi-interp.c;h=c08ba9da457d0e153bf52c2c04c1121487c2235e;hp=9ebad2bd83c5c376e350d27a2e461b4a44f0f707;hb=96f381820f6b2f532a1f166b628ff7f5f7e12908;hpb=d37635b0ddebbe2ddeaafc38d59b7e340f883273 diff --git a/cprogs/cgi-fcgi-interp.c b/cprogs/cgi-fcgi-interp.c index 9ebad2b..c08ba9d 100644 --- a/cprogs/cgi-fcgi-interp.c +++ b/cprogs/cgi-fcgi-interp.c @@ -2,7 +2,28 @@ * "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 + * + * 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. + */ +/* * 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 +47,10 @@ * speedy, the specified number of servers is started * right away.) The default is 4. * + * -D + * Debug mode. Do not actually run program. Instead, print + * out what we would do. + * * and can be put into a single argument * to cgi-fcgi-interp, separated by spaces or commas. * must come last. @@ -62,8 +87,8 @@ * - check for and maybe create * - stat and lstat the