src/server/daemon/main.c

changeset 142
55298bc9ed28
parent 130
198ad9d8cec1
child 146
a9591a91c004
equal deleted inserted replaced
141:ff311b63c3af 142:55298bc9ed28
161 log_ereport(LOG_INFORM, "startup"); 161 log_ereport(LOG_INFORM, "startup");
162 162
163 int status; 163 int status;
164 status = webserver_init(); 164 status = webserver_init();
165 if(status != 0) { 165 if(status != 0) {
166 fprintf(stderr, "Cannot initialize server!\n"); 166 log_ereport(LOG_FAILURE, "Cannot initialize server.");
167 return EXIT_FAILURE; 167 return EXIT_FAILURE;
168 } 168 }
169 169
170 status = webserver_run(); 170 status = webserver_run();
171 if(status != 0) { 171 if(status != 0) {
172 fprintf(stderr, "Cannot run server!\n"); 172 log_ereport(LOG_FAILURE, "Cannot run server.");
173 return EXIT_FAILURE; 173 return EXIT_FAILURE;
174 } 174 }
175 175
176 /* TODO: join threads (or not?) */ 176 /* TODO: join threads (or not?) */
177 while(1) { 177 while(1) {

mercurial