mirror of
https://github.com/kakwa/uts-server
synced 2025-07-04 04:27:05 +02:00
passing the launch working dir to the configuration handler
as many configuration paths can be relative to the execution working directory, this directory is recorded at launch time, and the set_params function does a chdir(<start work dir>); <load conf>; chdir("/") when it's called.
This commit is contained in:
parent
d91fbe377e
commit
d6a7ba86ff
5 changed files with 23 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
|||
#include <stdbool.h>
|
||||
#include "utils.h"
|
||||
|
||||
int http_server_start(char *conffile, bool stdout_dbg);
|
||||
int http_server_start(char *conffile, char *conf_wd,bool stdout_dbg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue