Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Hubert Feyrer <hubertf@netbsd.org>
List: source-changes
Date: 11/28/2000 03:16:03
Module Name:	basesrc
Committed By:	hubertf
Date:		Tue Nov 28 01:16:02 UTC 2000

Modified Files:
	basesrc/usr.sbin/pkg_install/lib: ftpio.c

Log Message:
Fix timeout in expect():

The FTP coprocess formerly wrote the output of the "get | tar vxf -" pipe
to stderr, which resulted in no output to the feedback pipe (stdout), and
thus the timeout was not updated for any line printed by the "tar" process.
This was now changed to also feed back the chars to the expect() routine,
updating the timeout handler. The "also" part is implemented by passing
the output through "tee /dev/stderr".

At least NetBSD and Solaris have this, so no problem there.

Thanks to Frank van der Linden for helping me to debug this.


To generate a diff of this commit:
cvs rdiff -r1.26 -r1.27 basesrc/usr.sbin/pkg_install/lib/ftpio.c

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