/[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.13 by sysadm, Fri May 9 11:21:11 2025 UTC Revision 1.14 by sysadm, Sun May 11 01:54:00 2025 UTC
# Line 133  int reloadbbsmenu(const char *s) Line 133  int reloadbbsmenu(const char *s)
133    
134  int shutdownbbs(const char *s)  int shutdownbbs(const char *s)
135  {  {
136          if (kill(0, SIGTERM) < 0)          log_std("Notify main process to exit\n");
137    
138            if (kill(getppid(), SIGTERM) < 0)
139          {          {
140                  log_error("Send SIGTERM signal failed (%d)\n", errno);                  log_error("Send SIGTERM signal failed (%d)\n", errno);
141          }          }


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

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