diff options
Diffstat (limited to 'loginutils')
-rw-r--r-- | loginutils/getty.c | 6 | ||||
-rw-r--r-- | loginutils/login.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c index 6c6d409..cd6378d 100644 --- a/loginutils/getty.c +++ b/loginutils/getty.c @@ -484,7 +484,7 @@ static char *get_logname(void) if (read(STDIN_FILENO, &c, 1) < 1) { finalize_tty_attrs(); if (errno == EINTR || errno == EIO) - exit(EXIT_SUCCESS); + exit_SUCCESS(); bb_simple_perror_msg_and_die(bb_msg_read_error); } @@ -511,7 +511,7 @@ static char *get_logname(void) case CTL('C'): case CTL('D'): finalize_tty_attrs(); - exit(EXIT_SUCCESS); + exit_SUCCESS(); case '\0': /* BREAK. If we have speeds to try, * return NULL (will switch speeds and return here) */ @@ -538,7 +538,7 @@ static char *get_logname(void) static void alarm_handler(int sig UNUSED_PARAM) { finalize_tty_attrs(); - _exit(EXIT_SUCCESS); + _exit_SUCCESS(); } static void sleep10(void) diff --git a/loginutils/login.c b/loginutils/login.c index ce87e31..569053c 100644 --- a/loginutils/login.c +++ b/loginutils/login.c @@ -312,7 +312,7 @@ static void alarm_handler(int sig UNUSED_PARAM) /* unix API is brain damaged regarding O_NONBLOCK, * we should undo it, or else we can affect other processes */ ndelay_off(STDOUT_FILENO); - _exit(EXIT_SUCCESS); + _exit_SUCCESS(); } int login_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |