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')
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to