ddos/server.c
changeset 161 36f763c8ab16
parent 160 26414889dded
equal deleted inserted replaced
160:26414889dded 161:36f763c8ab16
   107      * Child quits immediately, father mustn't wait
   107      * Child quits immediately, father mustn't wait
   108      */
   108      */
   109     signal (SIGCHLD, SIG_IGN);
   109     signal (SIGCHLD, SIG_IGN);
   110 
   110 
   111     if (set_proc_limit (200) != 0) {
   111     if (set_proc_limit (200) != 0) {
   112         printf ("Cannot limit the process limit\n");
   112         printf ("Cannot set the process limit\n");
   113         return EXIT_FAILURE;
   113         return EXIT_FAILURE;
   114     }
   114     }
   115 
   115 
   116     for (;;) {
   116     for (;;) {
   117         client_socket = accept (server_socket, NULL, NULL);
   117         client_socket = accept (server_socket, NULL, NULL);