diff options
Diffstat (limited to 'procps')
-rw-r--r-- | procps/top.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/procps/top.c b/procps/top.c index 908ae8151..1d22871f6 100644 --- a/procps/top.c +++ b/procps/top.c | |||
@@ -649,7 +649,7 @@ static void clearmems(void) | |||
649 | 649 | ||
650 | static void reset_term(void) | 650 | static void reset_term(void) |
651 | { | 651 | { |
652 | tcsetattr(0, TCSANOW, &initial_settings); | 652 | tcsetattr_stdin_TCSANOW(&initial_settings); |
653 | if (ENABLE_FEATURE_CLEAN_UP) { | 653 | if (ENABLE_FEATURE_CLEAN_UP) { |
654 | clearmems(); | 654 | clearmems(); |
655 | #if ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE | 655 | #if ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE |
@@ -941,7 +941,7 @@ int top_main(int argc UNUSED_PARAM, char **argv) | |||
941 | new_settings.c_lflag &= ~(ISIG | ICANON | ECHO | ECHONL); | 941 | new_settings.c_lflag &= ~(ISIG | ICANON | ECHO | ECHONL); |
942 | 942 | ||
943 | bb_signals(BB_FATAL_SIGS, sig_catcher); | 943 | bb_signals(BB_FATAL_SIGS, sig_catcher); |
944 | tcsetattr(0, TCSANOW, (void *) &new_settings); | 944 | tcsetattr_stdin_TCSANOW(&new_settings); |
945 | #endif /* FEATURE_USE_TERMIOS */ | 945 | #endif /* FEATURE_USE_TERMIOS */ |
946 | 946 | ||
947 | #if ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE | 947 | #if ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE |