Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ignore first call psgi_post_config

  • Loading branch information...
commit 8fd6f10a073a6d78a23e4d63dab0c51a956a25db 1 parent ecd58df
@spiritloose authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 mod_psgi.c
View
10 mod_psgi.c
@@ -548,7 +548,15 @@ psgi_post_config(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp, server_
int i;
char *file, **elts;
SV *app;
-
+ void *data;
+ const char *userdata_key = "psgi_post_config";
+
+ apr_pool_userdata_get(&data, userdata_key, s->process->pool);
+ if (data == NULL) {
+ apr_pool_userdata_set((const void *)1, userdata_key,
+ apr_pool_cleanup_null, s->process->pool);
+ return OK;
+ }
elts = (char **) psgi_apps->elts;
for (i = 0; i < psgi_apps->nelts; i++) {
file = elts[i];
Please sign in to comment.
Something went wrong with that request. Please try again.