Permalink
Browse files

Ignore first call psgi_post_config

  • Loading branch information...
1 parent ecd58df commit 8fd6f10a073a6d78a23e4d63dab0c51a956a25db @spiritloose committed Oct 3, 2009
Showing with 9 additions and 1 deletion.
  1. +9 −1 mod_psgi.c
View
@@ -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];

0 comments on commit 8fd6f10

Please sign in to comment.