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

Diff of /lbbs/src/fork.c

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

Revision 1.18 by sysadm, Tue May 13 07:41:55 2025 UTC Revision 1.21 by sysadm, Mon May 19 01:44:49 2025 UTC
# Line 19  Line 19 
19  #include "log.h"  #include "log.h"
20  #include "io.h"  #include "io.h"
21  #include "fork.h"  #include "fork.h"
22    #include "menu.h"
23  #include <stdio.h>  #include <stdio.h>
24  #include <string.h>  #include <string.h>
25  #include <signal.h>  #include <signal.h>
# Line 69  int fork_server() Line 70  int fork_server()
70    
71          SYS_child_process_count = 0;          SYS_child_process_count = 0;
72    
         // Reset signal handler to default  
         signal(SIGHUP, SIG_DFL);  
         signal(SIGCHLD, SIG_DFL);  
         signal(SIGTERM, SIG_DFL);  
           
73          bbs_main();          bbs_main();
74    
75          // Child process exit          // Child process exit
# Line 89  int fork_server() Line 85  int fork_server()
85          close(STDOUT_FILENO);          close(STDOUT_FILENO);
86    
87          log_std("Process exit normally\n");          log_std("Process exit normally\n");
   
88          log_end();          log_end();
89    
90            _exit(0);
91            
92          return 0;          return 0;
93  }  }


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

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