rendered paste body if(connection>=children) { snprintf (buffer, sizeof(buffer), "OUT\r\n"); Writen (connfd, buffer, strlen(buffer)); Close (connfd); } else { snprintf (buffer, sizeof(buffer), "IN\r\n"); Writen (connfd, buffer, strlen(buffer)); if ((pid = Fork()) == 0) // this is the child { Close (listenfd); hello (connfd); Close (connfd); exit (0); } else // this is the parent { pid_queue(pid); Close (connfd);#ifdef TRACE err_msg ("(%s) info - Child number %d (pid:%d) spawned\r\n", prog, connection, pid); // err_msg ("(%s) info - Waiting for HELLO from child number %d (pid: %d) ...\r\n", prog, connection, pid);#endif }