svn commit: r317771 - head/usr.sbin/pkg
Poul-Henning Kamp
phk at FreeBSD.org
Wed May 3 20:41:28 UTC 2017
Author: phk
Date: Wed May 3 20:41:26 2017
New Revision: 317771
URL: https://svnweb.freebsd.org/changeset/base/317771
Log:
Flush stdout before yes/no confirmations, to force question
through pipes/tee(1)/whatever
Modified:
head/usr.sbin/pkg/pkg.c
Modified: head/usr.sbin/pkg/pkg.c
==============================================================================
--- head/usr.sbin/pkg/pkg.c Wed May 3 20:26:59 2017 (r317770)
+++ head/usr.sbin/pkg/pkg.c Wed May 3 20:41:26 2017 (r317771)
@@ -946,6 +946,7 @@ pkg_query_yes_no(void)
{
int ret, c;
+ fflush(stdout);
c = getchar();
if (c == 'y' || c == 'Y')
More information about the svn-src-head
mailing list