Module Name: src
Committed By: martin
Date: Mon Dec 29 14:43:06 UTC 2014
Modified Files:
src/usr.sbin/sysinst: run.c
Log Message:
If we launch a program with RUN_SILENT, give it more than two seconds to
run before we create an output window. On a swapping VAX it can take
seriously longer, and we get interactive status display even if the program
did not produce any error output otherwise.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/sysinst/run.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/sysinst/run.c
diff -u src/usr.sbin/sysinst/run.c:1.3 src/usr.sbin/sysinst/run.c:1.4
--- src/usr.sbin/sysinst/run.c:1.3 Tue Oct 14 16:35:20 2014
+++ src/usr.sbin/sysinst/run.c Mon Dec 29 14:43:06 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: run.c,v 1.3 2014/10/14 16:35:20 christos Exp $ */
+/* $NetBSD: run.c,v 1.4 2014/12/29 14:43:06 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -497,7 +497,7 @@ launch_subwin(WINDOW **actionwin, char *
errx(1, mmsg);
}
read_fd_set = active_fd_set;
- tmo.tv_sec = 2;
+ tmo.tv_sec = flags & RUN_SILENT ? 20 : 2;
tmo.tv_usec = 0;
i = select(FD_SETSIZE, &read_fd_set, NULL, NULL, &tmo);
if (i == 0 && *actionwin == NULL)