--- lbbs/src/menu_proc.c 2005/05/07 09:28:12 1.3 +++ lbbs/src/menu_proc.c 2005/05/07 12:08:28 1.4 @@ -20,8 +20,11 @@ #include "common.h" #include "io.h" #include -#include +#include #include +#include +#include +#include int exec_mbem(const char *str) @@ -95,9 +98,19 @@ copyright (const char *s) } int -notify_reload_menu (const char *s) +reloadbbsmenu (const char *s) +{ + if (kill (getppid (), SIG_RELOAD_MENU) < 0) + log_error ("Send SIG_RELOAD_MENU signal failed (%d)\n", errno); + + return REDRAW; +} + +int +shutdownbbs (const char *s) { - kill (0, SIG_RELOAD_MENU); + if (kill (0, SIG_BBS_EXIT) < 0) + log_error ("Send SIG_BBS_EXIT signal failed (%d)\n", errno); return REDRAW; }