Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/pkg_install/lib do not terminate on EINTR. with pr...
details: https://anonhg.NetBSD.org/src/rev/1e9cbf754259
branches: trunk
changeset: 508219:1e9cbf754259
user: itojun <itojun%NetBSD.org@localhost>
date: Mon Apr 09 08:13:37 2001 +0000
description:
do not terminate on EINTR. with previous behavior pkg_add terminates
if we suspend/change window size.
diffstat:
usr.sbin/pkg_install/lib/ftpio.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r e4c69afd6dad -r 1e9cbf754259 usr.sbin/pkg_install/lib/ftpio.c
--- a/usr.sbin/pkg_install/lib/ftpio.c Mon Apr 09 06:21:03 2001 +0000
+++ b/usr.sbin/pkg_install/lib/ftpio.c Mon Apr 09 08:13:37 2001 +0000
@@ -1,8 +1,8 @@
-/* $NetBSD: ftpio.c,v 1.29 2001/04/06 11:13:50 wiz Exp $ */
+/* $NetBSD: ftpio.c,v 1.30 2001/04/09 08:13:37 itojun Exp $ */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: ftpio.c,v 1.29 2001/04/06 11:13:50 wiz Exp $");
+__RCSID("$NetBSD: ftpio.c,v 1.30 2001/04/09 08:13:37 itojun Exp $");
#endif
/*
@@ -136,6 +136,8 @@
rc = select(FD_SETSIZE, &fdset, NULL, NULL, &timeout);
switch (rc) {
case -1:
+ if (errno == EINTR)
+ break;
warn("expect: select() failed (probably ftp died because of bad args)");
done = 1;
retval = -1;
Home |
Main Index |
Thread Index |
Old Index