tools/intel_gpu_top: restore original terminal attributes upon quit or SIGINT.
PATCH 2/2 tools/intel_gpu_top: restore original terminal attributes upon quit or SIGINT.
Signed-off-by K. Eugene Carlson <[email protected]>
--- tools/intel_gpu_top.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
tools/intel_gpu_top.c +1 -4
@@ -1503,10 +1503,7 @@ print_engines(struct engines *engines, double t, int lines, int w, int h)static void restore_term (void ) { -int ret; - - ret =tcsetattr (STDIN_FILENO ,TCSANOW , &termios_orig); -assert (ret ==0 ); +tcsetattr (STDIN_FILENO ,TCSANOW , &termios_orig);printf ("\n" ); }
Signature · 1 line
2.35.1