/[LeafOK_CVS]/lbbs/src/menu_proc.c
ViewVC logotype

Diff of /lbbs/src/menu_proc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 by sysadm, Sat May 7 09:28:12 2005 UTC Revision 1.5 by sysadm, Sat May 7 12:15:30 2005 UTC
# Line 20  Line 20 
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 <signal.h>
25  #include <string.h>  #include <string.h>
26    #include <sys/types.h>
27    #include <time.h>
28    #include <unistd.h>
29    
30  int  int
31  exec_mbem(const char *str)  exec_mbem(const char *str)
# Line 95  copyright (const char *s) Line 99  copyright (const char *s)
99  }  }
100    
101  int  int
102  notify_reload_menu (const char *s)  reloadbbsmenu (const char *s)
103    {
104        if (kill (getppid (), SIG_RELOAD_MENU) < 0)
105          log_error ("Send SIG_RELOAD_MENU signal failed (%d)\n", errno);
106    
107        return REDRAW;
108    }
109    
110    int
111    shutdownbbs (const char *s)
112  {  {
113      kill (0, SIG_RELOAD_MENU);      if (kill (0, SIGTERM) < 0)
114          log_error ("Send SIGTERM signal failed (%d)\n", errno);
115    
116      return REDRAW;      return REDRAW;
117  }  }


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1