Bug 23923 - xinetd not waiting for tftpd to finish
Summary: xinetd not waiting for tftpd to finish
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: tftp
Version: 7.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: David Lawrence
URL:
Whiteboard:
: 29788 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-01-12 21:43 UTC by Need Real Name
Modified: 2014-03-17 02:18 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-01-12 21:43:11 UTC


Attachments (Terms of Use)

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.

/etc/xinetd.d/tftp:
# 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. ***


Note You need to log in before you can comment on or make changes to this bug.