Bug 23923

Summary: xinetd not waiting for tftpd to finish
Product: [Retired] Red Hat Linux Reporter: Need Real Name <patrick.timmons>
Component: tftpAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-01-12 21:43:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Need Real Name 2001-01-12 21:43:09 UTC
xinetd cannot wait for tftpd to finish the transfer because xinetd does a
select on a wait for process tftpd but tftpd does a fork() (version 0.15
was doing an execve()) and doesn't wait for its child (which does the
transfer). An 'strace -fp `cat /var/run/xinetd.pid`' shows the bug.

# default: off
# description: The tftp server serves files using the trivial file transfer
#	protocol.  The tftp protocol is often used to boot diskless \
#	workstations, download configuration files to network-aware printers, \
#	and to start the installation process for some operating systems.
service tftp
	socket_type		= dgram
	wait			= yes
	user			= nobody
	log_on_success		+= USERID
	log_on_failure 		+= USERID
	server			= /usr/sbin/in.tftpd
	server_args		= /tftpboot
#	disable			= yes

Comment 1 Jeff Johnson 2001-01-17 21:25:32 UTC
FIxed in tftp-0.17-7. Thanks for noticing.

Comment 2 Helge Deller 2001-03-01 16:08:58 UTC
*** Bug 29788 has been marked as a duplicate of this bug. ***