aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-03-01 16:47:13 -0600
committerRob Landley <rob@landley.net>2019-03-01 16:47:13 -0600
commitc96d4b9c6c9db70ac5e46d4c74de7186309fc2f7 (patch)
tree91665220e1839f7402ab68acb6b83a61ed47e367 /toys
parent8f6554366bcf6f7b07a52ea802856aeedc36645a (diff)
downloadtoybox-c96d4b9c6c9db70ac5e46d4c74de7186309fc2f7.tar.gz
Yes it's a one instruction race, but it bothers me.
Diffstat (limited to 'toys')
-rw-r--r--toys/posix/ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/ps.c b/toys/posix/ps.c
index 7cf6e0dd..dac39c83 100644
--- a/toys/posix/ps.c
+++ b/toys/posix/ps.c
@@ -1459,8 +1459,8 @@ static void top_common(
// Avoid flicker and hide the cursor in interactive mode.
if (!FLAG(b)) {
setbuf(stdout, stdout_buf);
- tty_esc("?25l");
sigatexit(top_cursor_cleanup);
+ tty_esc("?25l");
}
toys.signal = SIGWINCH;