From 044c0d9030859c059d1dbce9dc9eb963a828605f Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 26 Feb 2019 13:26:45 -0800 Subject: top: fix -b. We hadn't updated the output in -b mode ever since I broke this in 2016. Bug: http://b/126347053 "top doesn't seem to update the output when run in batch mode (-b)" --- toys/posix/ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix') diff --git a/toys/posix/ps.c b/toys/posix/ps.c index c0e7e9e9..7cf6e0dd 100644 --- a/toys/posix/ps.c +++ b/toys/posix/ps.c @@ -1676,7 +1676,7 @@ static void top_common( msleep(timeout-now); // Make an obvious gap between datasets. xputs("\n\n"); - continue; + break; } else fflush(stdout); i = scan_key_getsize(scratch, timeout-now, &TT.width, &TT.height); -- cgit v1.2.3