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

Diff of /lbbs/src/common.c

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

Revision 1.31 by sysadm, Tue Jun 17 01:24:21 2025 UTC Revision 1.33 by sysadm, Tue Jun 17 13:17:04 2025 UTC
# Line 14  Line 14 
14   *                                                                         *   *                                                                         *
15   ***************************************************************************/   ***************************************************************************/
16    
 #define _POSIX_C_SOURCE 200112L  
   
17  #include "common.h"  #include "common.h"
18  #include "log.h"  #include "log.h"
19  #include "menu.h"  #include "menu.h"
# Line 89  void sig_hup_handler(int i) Line 87  void sig_hup_handler(int i)
87    
88  void sig_term_handler(int i)  void sig_term_handler(int i)
89  {  {
         struct sigaction act = {0};  
   
90          SYS_server_exit = 1;          SYS_server_exit = 1;
   
         act.sa_handler = SIG_IGN;  
         sigaction(SIGTERM, &act, NULL);  
91  }  }
92    
93  void sig_chld_handler(int i)  void sig_chld_handler(int i)


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

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