~mmach/netext73/busybox

« back to all changes in this revision

Viewing changes to loginutils/getty.c

  • Committer: mmach
  • Date: 2023-07-06 04:40:25 UTC
  • Revision ID: netbit73@gmail.com-20230706044025-2ia9985i8wzdn2a7
1.36.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
484
484
                        if (read(STDIN_FILENO, &c, 1) < 1) {
485
485
                                finalize_tty_attrs();
486
486
                                if (errno == EINTR || errno == EIO)
487
 
                                        exit(EXIT_SUCCESS);
 
487
                                        exit_SUCCESS();
488
488
                                bb_simple_perror_msg_and_die(bb_msg_read_error);
489
489
                        }
490
490
 
511
511
                        case CTL('C'):
512
512
                        case CTL('D'):
513
513
                                finalize_tty_attrs();
514
 
                                exit(EXIT_SUCCESS);
 
514
                                exit_SUCCESS();
515
515
                        case '\0':
516
516
                                /* BREAK. If we have speeds to try,
517
517
                                 * return NULL (will switch speeds and return here) */
538
538
static void alarm_handler(int sig UNUSED_PARAM)
539
539
{
540
540
        finalize_tty_attrs();
541
 
        _exit(EXIT_SUCCESS);
 
541
        _exit_SUCCESS();
542
542
}
543
543
 
544
544
static void sleep10(void)