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

Diff of /lbbs/src/main.c

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

Revision 1.13 by sysadm, Sat Apr 16 04:49:11 2005 UTC Revision 1.15 by sysadm, Sat May 7 12:08:28 2005 UTC
# Line 19  Line 19 
19  #include "common.h"  #include "common.h"
20  #include "io.h"  #include "io.h"
21  #include "menu.h"  #include "menu.h"
22    #include <signal.h>
23  #include <string.h>  #include <string.h>
24    #include <sys/types.h>
25  #include <unistd.h>  #include <unistd.h>
26    
27  void  void
# Line 144  main (int argc, char *argv[]) Line 146  main (int argc, char *argv[])
146    if (load_menu (&bbs_menu, file_config) < 0)    if (load_menu (&bbs_menu, file_config) < 0)
147      exit (-3);      exit (-3);
148    
149      //Set signal handler
150      signal (SIGCHLD, child_exit);
151      signal (SIG_RELOAD_MENU, reload_bbs_menu);
152      signal (SIG_BBS_EXIT, system_exit);
153      
154    //Initialize socket server    //Initialize socket server
155    net_server (BBS_address, BBS_port);    net_server (BBS_address, BBS_port);
156    
157      //Wait for child process exit
158      while (SYS_child_process_count > 0)
159      {
160        log_std (".");
161        sleep(1);
162      }
163    
164    return 0;    return 0;
165  }  }


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

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