inetd children
The child process closes all unnecessary sockets.
The child dup’s the client socket to descriptors 0,1 and 2 (stdin, stdout, stderr).
The child exec’s the real server program, which handles the request and exits.
Previous slide
Next slide
Back to first slide
View graphic version