For and exit so that inetd can have us be a "wait" service.
authorGregory Minshall <minshall@ucbvax.Berkeley.EDU>
Wed, 14 May 1986 05:34:29 +0000 (21:34 -0800)
committerGregory Minshall <minshall@ucbvax.Berkeley.EDU>
Wed, 14 May 1986 05:34:29 +0000 (21:34 -0800)
commit854c42adf7c6017f9b313eee215a391c570b7e7d
tree79e8e2df9e7b3c7f6823fcd235711835481bbc80
parent770b99becd84a2efa6f8dbba1b981fa8e178b318
For and exit so that inetd can have us be a "wait" service.
The problem with the old way is that there is a race between tftpd (starting
up) and inetd (after forking and execing) to see who gets to read from port
69 (the udp port).  If inetd wins, it will spawn another instance of tftpd.
So, we read the packet from port 69, then fork and the parent returns.

SCCS-vsn: libexec/tftpd/tftpd.c 5.6
usr/src/libexec/tftpd/tftpd.c