Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sysinst If we launch a program with RUN_SILENT, giv...



details:   https://anonhg.NetBSD.org/src/rev/f83c379244c5
branches:  trunk
changeset: 335181:f83c379244c5
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Dec 29 14:43:06 2014 +0000

description:
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.

diffstat:

 usr.sbin/sysinst/run.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 707744038540 -r f83c379244c5 usr.sbin/sysinst/run.c
--- a/usr.sbin/sysinst/run.c    Mon Dec 29 14:22:25 2014 +0000
+++ b/usr.sbin/sysinst/run.c    Mon Dec 29 14:43:06 2014 +0000
@@ -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 @@
                        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)



Home | Main Index | Thread Index | Old Index