--- lbbs/include/common.h 2025/05/07 05:43:43 1.23 +++ lbbs/include/common.h 2025/05/11 01:54:00 1.26 @@ -27,6 +27,8 @@ extern char app_version[256]; // Enviroment +#define CONF_BBSD "conf/bbsd.conf" +#define CONF_MENU "conf/menu.conf" #define CONF_BBSNET "conf/bbsnet.conf" #define LOG_FILE_INFO "log/bbsd.log" @@ -53,20 +55,19 @@ extern char hostaddr_client[IP_ADDR_LEN] extern int port_server; extern int port_client; -// Signal -#define SIG_RELOAD_MENU 0x22 - extern const char *str_space(char *string, int length); extern const char *get_time_str(char *string, size_t length); // Signal handler -extern void reload_bbs_menu(int); -extern void system_exit(int); -extern void child_exit(int); +extern void sig_hup_handler(int); +extern void sig_term_handler(int); +extern void sig_chld_handler(int); // System -extern int SYS_exit; -extern int SYS_child_process_count; +extern volatile int SYS_server_exit; +extern volatile int SYS_child_process_count; +extern volatile int SYS_child_exit; +extern volatile int SYS_menu_reload; // Network extern const char * ip_mask(char * s, int level, char mask);