Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Hubert Feyrer <hubertf@netbsd.org>
List: source-changes
Date: 09/01/2000 07:42:58
Module Name:	basesrc
Committed By:	hubertf
Date:		Fri Sep  1 04:42:58 UTC 2000

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

Log Message:
When downloading and extracting a file (in ftp:
'get pkg.tgz "| cd /var/tmp/inst ; gunzip | tar -x -f -"'), handle
two cases better:

1. Timing out ftp connections: Make sure the hanging pipeline gets a ^C
   (SIGINT), and wait until the ftp prompt is available again. Else we
   may nuke away tar's working dir, and it may be displeased.
2. One of the commands from the pipeline exiting: caught via SIGCHLD;
   for this signal to be delivered, a empty handler is needed)

Adresses PR 10925 by Greg A. Woods <woods@planix.com>


To generate a diff of this commit:
cvs rdiff -r1.23 -r1.24 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.