diff options
author | Narayan Kamath <narayan@google.com> | 2017-01-23 13:20:41 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-01-23 13:20:42 +0000 |
commit | ab2b45c96572c15c3bcb4a6ae81449312f4800bf (patch) | |
tree | 5cee19d5618b77811b8449865a2cb1654dc6ab0b /iptables/iptables-restore.c | |
parent | 12846fada94a801302584f944345151a492564f3 (diff) | |
parent | e2e435dc2631bedb9a7a6db2cf5f595b2039c748 (diff) | |
download | platform_external_iptables-ab2b45c96572c15c3bcb4a6ae81449312f4800bf.tar.gz platform_external_iptables-ab2b45c96572c15c3bcb4a6ae81449312f4800bf.tar.bz2 platform_external_iptables-ab2b45c96572c15c3bcb4a6ae81449312f4800bf.zip |
Merge "iptables: flush stdout after every verbose log."
Diffstat (limited to 'iptables/iptables-restore.c')
-rw-r--r-- | iptables/iptables-restore.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/iptables/iptables-restore.c b/iptables/iptables-restore.c index 2009f732..4d49b3c9 100644 --- a/iptables/iptables-restore.c +++ b/iptables/iptables-restore.c @@ -268,8 +268,10 @@ iptables_restore_main(int argc, char *argv[]) if (buffer[0] == '\n') continue; else if (buffer[0] == '#') { - if (verbose) + if (verbose) { fputs(buffer, stdout); + fflush(stdout); + } continue; } else if ((strcmp(buffer, "COMMIT\n") == 0) && (in_table)) { if (!testing) { |