Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/sysinst Revise previous: with RUN_SILENT there is n...
details: https://anonhg.NetBSD.org/src/rev/33170c63cefc
branches: trunk
changeset: 335219:33170c63cefc
user: martin <martin%NetBSD.org@localhost>
date: Tue Dec 30 10:10:22 2014 +0000
description:
Revise previous: with RUN_SILENT there is never a good reason to create
the output window unless there is actually output to display.
diffstat:
usr.sbin/sysinst/run.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r ced06538ef6e -r 33170c63cefc usr.sbin/sysinst/run.c
--- a/usr.sbin/sysinst/run.c Tue Dec 30 09:58:53 2014 +0000
+++ b/usr.sbin/sysinst/run.c Tue Dec 30 10:10:22 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: run.c,v 1.4 2014/12/29 14:43:06 martin Exp $ */
+/* $NetBSD: run.c,v 1.5 2014/12/30 10:10:22 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -500,7 +500,7 @@
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)
+ if (i == 0 && *actionwin == NULL && (flags & RUN_SILENT) == 0)
*actionwin = show_cmd(scmd, win);
if (i < 0) {
if (errno != EINTR) {
Home |
Main Index |
Thread Index |
Old Index