| 23 |
#include "menu.h" |
#include "menu.h" |
| 24 |
#include "file_loader.h" |
#include "file_loader.h" |
| 25 |
#include "section_list_loader.h" |
#include "section_list_loader.h" |
| 26 |
|
#include <errno.h> |
| 27 |
#include <stdlib.h> |
#include <stdlib.h> |
| 28 |
#include <signal.h> |
#include <signal.h> |
| 29 |
#include <string.h> |
#include <string.h> |
| 150 |
return -2; |
return -2; |
| 151 |
} |
} |
| 152 |
|
|
| 153 |
|
// Check article cache dir |
| 154 |
|
ret = mkdir(VAR_ARTICLE_CACHE_DIR, S_IRWXU | S_IRGRP); |
| 155 |
|
if (ret == -1 && errno != EEXIST) |
| 156 |
|
{ |
| 157 |
|
log_error("mkdir(%s) error (%d)\n", VAR_ARTICLE_CACHE_DIR, errno); |
| 158 |
|
goto cleanup; |
| 159 |
|
} |
| 160 |
|
|
| 161 |
// Initialize data pools |
// Initialize data pools |
| 162 |
if ((fp = fopen(VAR_TRIE_DICT_SHM, "w")) == NULL) |
if ((fp = fopen(VAR_TRIE_DICT_SHM, "w")) == NULL) |
| 163 |
{ |
{ |