Browse Source

skip spawning backends for preflight tests (#2642)

Also, update man page for lighttpd -tt

x-ref:
  "add option for "fail on warning""
  https://redmine.lighttpd.net/issues/2642
personal/stbuehler/mod-csrf-old
Glenn Strauss 6 years ago
parent
commit
c4edd35655
  1. 3
      doc/lighttpd.8
  2. 3
      src/mod_fastcgi.c
  3. 3
      src/mod_scgi.c

3
doc/lighttpd.8

@ -33,6 +33,9 @@ Print the parsed configuration file in its internal form and exit.
\fB\-t\fP
Test the configuration file for syntax errors and exit.
.TP 8
\fB\-tt\fP
Test the configuration file for syntax errors, load and initialize modules, and exit.
.TP 8
\fB\-D\fP
Do not daemonize (go into background). The default is to daemonize.
.TP 8

3
src/mod_fastcgi.c

@ -1429,7 +1429,8 @@ SETDEFAULTS_FUNC(mod_fastcgi_set_defaults) {
"\n\tcurrent:", pno, "/", host->max_procs);
}
if (fcgi_spawn_connection(srv, p, host, proc)) {
if (!srv->srvconf.preflight_check
&& fcgi_spawn_connection(srv, p, host, proc)) {
log_error_write(srv, __FILE__, __LINE__, "s",
"[ERROR]: spawning fcgi failed.");
fastcgi_process_free(proc);

3
src/mod_scgi.c

@ -1191,7 +1191,8 @@ SETDEFAULTS_FUNC(mod_scgi_set_defaults) {
"\n\tcurrent:", pno, "/", df->min_procs);
}
if (scgi_spawn_connection(srv, p, df, proc)) {
if (!srv->srvconf.preflight_check
&& scgi_spawn_connection(srv, p, df, proc)) {
log_error_write(srv, __FILE__, __LINE__, "s",
"[ERROR]: spawning fcgi failed.");
scgi_process_free(proc);

Loading…
Cancel
Save