Date: Wed, 3 May 2017 20:41:27 +0000 (UTC) From: Poul-Henning Kamp <phk@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r317771 - head/usr.sbin/pkg Message-ID: <201705032041.v43KfR5q055707@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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')
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705032041.v43KfR5q055707>