aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/ps.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2017-02-05 20:02:47 -0600
committerRob Landley <rob@landley.net>2017-02-05 20:02:47 -0600
commit544669ff968beee1f522d72b2d92d1570c59f3ef (patch)
tree83436459e04757926ef596a1e8e2565cc3e2f901 /toys/posix/ps.c
parentea2067aedd4509b664211dd9815563742a31921d (diff)
downloadtoybox-544669ff968beee1f522d72b2d92d1570c59f3ef.tar.gz
Don't set SIGWINCH when reading ANSI size probe data, it causes a loop.
Diffstat (limited to 'toys/posix/ps.c')
-rw-r--r--toys/posix/ps.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/toys/posix/ps.c b/toys/posix/ps.c
index d72e3359..9c38430a 100644
--- a/toys/posix/ps.c
+++ b/toys/posix/ps.c
@@ -1546,6 +1546,7 @@ static void top_common(
break;
}
if (i==-2) break;
+ if (i==-3) continue;
// Flush unknown escape sequences.
if (i==27) while (0<scan_key_getsize(scratch, 0, &TT.width, &TT.height));