Subject: CVS commit: src/usr.bin/ftp
To: None <source-changes@NetBSD.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 04/10/2004 12:21:39
Module Name:	src
Committed By:	lukem
Date:		Sat Apr 10 12:21:39 UTC 2004

Modified Files:
	src/usr.bin/ftp: ftp.c util.c version.h

Log Message:
If connect(2) in xconnect() fails with EINTR, call select(2) on the socket
until it's writable or it fails with something other than EINTR.
This matches the behaviour in SUSv3, and prevents the problem when
pressing ^T (SIGINFO, which is marked as restartable) during connection
setup would cause ftp to fail with EADDRINUSE or EALREADY when the
second connect(2) was attempted on the same socket.
Problem found and solution provided by Maxime Henrion <mux@freebsd.org>.


To generate a diff of this commit:
cvs rdiff -r1.124 -r1.125 src/usr.bin/ftp/ftp.c
cvs rdiff -r1.114 -r1.115 src/usr.bin/ftp/util.c
cvs rdiff -r1.34 -r1.35 src/usr.bin/ftp/version.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.