| 14 |
* * |
* * |
| 15 |
***************************************************************************/ |
***************************************************************************/ |
| 16 |
|
|
|
#define _POSIX_C_SOURCE 200112L |
|
|
|
|
| 17 |
#include "common.h" |
#include "common.h" |
| 18 |
#include "log.h" |
#include "log.h" |
| 19 |
#include "menu.h" |
#include "menu.h" |
| 20 |
|
#include <signal.h> |
| 21 |
#include <string.h> |
#include <string.h> |
| 22 |
#include <time.h> |
#include <time.h> |
|
#include <signal.h> |
|
| 23 |
#include <sys/types.h> |
#include <sys/types.h> |
| 24 |
|
|
| 25 |
// File loader |
// File loader |
| 87 |
|
|
| 88 |
void sig_term_handler(int i) |
void sig_term_handler(int i) |
| 89 |
{ |
{ |
|
struct sigaction act = {0}; |
|
|
|
|
| 90 |
SYS_server_exit = 1; |
SYS_server_exit = 1; |
|
|
|
|
act.sa_handler = SIG_IGN; |
|
|
sigaction(SIGTERM, &act, NULL); |
|
| 91 |
} |
} |
| 92 |
|
|
| 93 |
void sig_chld_handler(int i) |
void sig_chld_handler(int i) |