From c96d4b9c6c9db70ac5e46d4c74de7186309fc2f7 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 1 Mar 2019 16:47:13 -0600 Subject: Yes it's a one instruction race, but it bothers me. --- toys/posix/ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix/ps.c') 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; -- cgit v1.2.3