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
|
@ -4,6 +4,6 @@ void skeleton_daemon();
|
|||
void uts_logger(rfc3161_context *ct, int priority, char *fmt, ...);
|
||||
void log_hex(rfc3161_context *ct, int priority, char *id,
|
||||
unsigned char *content, int content_length);
|
||||
int set_params(rfc3161_context *ct, char *conf_file);
|
||||
int set_params(rfc3161_context *ct, char *conf_file, char *conf_wd);
|
||||
int g_uts_sig_up;
|
||||
int g_uts_sig;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue