| 20 |
#include "common.h" |
#include "common.h" |
| 21 |
#include "io.h" |
#include "io.h" |
| 22 |
#include <dlfcn.h> |
#include <dlfcn.h> |
| 23 |
#include <time.h> |
#include <errno.h> |
| 24 |
#include <string.h> |
#include <string.h> |
| 25 |
|
#include <sys/types.h> |
| 26 |
|
#include <time.h> |
| 27 |
|
#include <unistd.h> |
| 28 |
|
|
| 29 |
int |
int |
| 30 |
exec_mbem(const char *str) |
exec_mbem(const char *str) |
| 98 |
} |
} |
| 99 |
|
|
| 100 |
int |
int |
| 101 |
notify_reload_menu (const char *s) |
reloadbbsmenu (const char *s) |
| 102 |
|
{ |
| 103 |
|
if (kill (getppid (), SIG_RELOAD_MENU) < 0) |
| 104 |
|
log_error ("Send SIG_RELOAD_MENU signal failed (%d)\n", errno); |
| 105 |
|
|
| 106 |
|
return REDRAW; |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
int |
| 110 |
|
shutdownbbs (const char *s) |
| 111 |
{ |
{ |
| 112 |
kill (0, SIG_RELOAD_MENU); |
if (kill (0, SIG_BBS_EXIT) < 0) |
| 113 |
|
log_error ("Send SIG_BBS_EXIT signal failed (%d)\n", errno); |
| 114 |
|
|
| 115 |
return REDRAW; |
return REDRAW; |
| 116 |
} |
} |