tc: flush after each command in batch mode
After each command flush output. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
3655f788d3
commit
d66fdfda71
1
tc/tc.c
1
tc/tc.c
|
|
@ -402,6 +402,7 @@ static int batch(const char *name)
|
||||||
|
|
||||||
err = do_cmd(largc, largv, tail == NULL ? NULL : tail->buf,
|
err = do_cmd(largc, largv, tail == NULL ? NULL : tail->buf,
|
||||||
tail == NULL ? 0 : sizeof(tail->buf));
|
tail == NULL ? 0 : sizeof(tail->buf));
|
||||||
|
fflush(stdout);
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
fprintf(stderr, "Command failed %s:%d\n", name,
|
fprintf(stderr, "Command failed %s:%d\n", name,
|
||||||
cmdlineno - 1);
|
cmdlineno - 1);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue