initialization makeServersocket while 2<3 fd = accept(s, ...) fork if error perror exit if kid all the work exit if parent int junk loop while there ar emore kids to harvest waitpid(-1, &junk, WNOHANG); and check for errors close(fd)