Flush stdout before yes/no confirmations, to force question
through pipes/tee(1)/whatever
This commit is contained in:
parent
e018cf091c
commit
1bc187bc71
@ -946,6 +946,7 @@ pkg_query_yes_no(void)
|
||||
{
|
||||
int ret, c;
|
||||
|
||||
fflush(stdout);
|
||||
c = getchar();
|
||||
|
||||
if (c == 'y' || c == 'Y')
|
||||
|
Loading…
Reference in New Issue
Block a user