Skip to content

Commit

Permalink
load modules in child process from included configs
Browse files Browse the repository at this point in the history
  • Loading branch information
tporadowski committed Feb 10, 2022
1 parent 223d9e1 commit 4b5b367
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Win32_Interop/Win32_QFork_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
#include "Win32_Portability.h"

/*
* Config file parameter filter that allows only "loadmodule" directives.
* Config file parameter filter that allows only "loadmodule" or "include" directives.
*/
int ConfigFilterModulesOnly(sds configLine) {
return strcasecmp(configLine, "loadmodule") == 0 ? TRUE : FALSE;
int includeDirective = strcasecmp(configLine, "include") == 0 ? TRUE : FALSE;
int loadModuleDirective = strcasecmp(configLine, "loadmodule") == 0 ? TRUE : FALSE;
return includeDirective || loadModuleDirective;
}

/*
Expand Down

0 comments on commit 4b5b367

Please sign in to comment.