| 17 |
#include <stdio.h> |
#include <stdio.h> |
| 18 |
#include <string.h> |
#include <string.h> |
| 19 |
#include <unistd.h> |
#include <unistd.h> |
|
#include <sys/shm.h> |
|
| 20 |
|
|
| 21 |
const char *files[] = { |
const char *files[] = { |
| 22 |
"../data/welcome.txt", |
"../data/welcome.txt", |
| 73 |
|
|
| 74 |
if (detach_file_shm(p_shm) < 0) |
if (detach_file_shm(p_shm) < 0) |
| 75 |
{ |
{ |
| 76 |
log_error("detach_file_shm(%s) error\n", files[i]); |
log_error("detach_file_shm(%s) error", files[i]); |
| 77 |
} |
} |
| 78 |
} |
} |
| 79 |
} |
} |
| 123 |
|
|
| 124 |
if (detach_file_shm(p_shm) < 0) |
if (detach_file_shm(p_shm) < 0) |
| 125 |
{ |
{ |
| 126 |
log_error("detach_file_shm(%s) error\n", files[i]); |
log_error("detach_file_shm(%s) error", files[i]); |
| 127 |
} |
} |
| 128 |
} |
} |
| 129 |
} |
} |