src/server/daemon/webserver.c

changeset 162
b169992137a8
parent 161
aadda87bad1b
child 179
ef6827505bd2
equal deleted inserted replaced
161:aadda87bad1b 162:b169992137a8
46 #include "../public/auth.h" 46 #include "../public/auth.h"
47 #include "../util/systhr.h" 47 #include "../util/systhr.h"
48 #include "../util/io.h" 48 #include "../util/io.h"
49 #include "../util/util.h" 49 #include "../util/util.h"
50 50
51 #include "../safs/common.h"
52
51 #include "func.h" 53 #include "func.h"
52 #include "config.h" 54 #include "config.h"
53 #include "configmanager.h" 55 #include "configmanager.h"
54 #include "httplistener.h" 56 #include "httplistener.h"
55 #include "webserver.h" 57 #include "webserver.h"
100 FILE *pidfile = fopen(pid_file_path, "w"); // TODO: check error 102 FILE *pidfile = fopen(pid_file_path, "w"); // TODO: check error
101 pid_t pid = getpid(); 103 pid_t pid = getpid();
102 fprintf(pidfile, "%d", pid); 104 fprintf(pidfile, "%d", pid);
103 fclose(pidfile); 105 fclose(pidfile);
104 free(pid_file_path); 106 free(pid_file_path);
107
108 // init SAFs
109 common_saf_init();
105 110
106 // set global vars 111 // set global vars
107 conf_global_vars_s *vars = conf_getglobals(); 112 conf_global_vars_s *vars = conf_getglobals();
108 113
109 WSBool changeuid = FALSE; 114 WSBool changeuid = FALSE;

mercurial