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/676fa3b72c0f
branches:  trunk
changeset: 805323:676fa3b72c0f
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 6bd0a507f1d1 -r 676fa3b72c0f 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