1 int main(int argc, char *argv[])
12 if (pid == 0) { /* child */
13 close(list_fd); /* close listening socket */
14 if (keepalive) { /* enable keepalive ? */
15 setsockopt(conn_fd, SOL_SOCKET, SO_KEEPALIVE,
16 &keepalive, sizeof(keepalive));
18 ServEcho(conn_fd); /* handle echo */