aboutsummaryrefslogtreecommitdiff
path: root/loginutils/getty.c
diff options
context:
space:
mode:
Diffstat (limited to 'loginutils/getty.c')
-rw-r--r--loginutils/getty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c
index 5e161823a..f022aec59 100644
--- a/loginutils/getty.c
+++ b/loginutils/getty.c
@@ -423,7 +423,7 @@ static char *get_logname(char *logname, unsigned size_logname,
/* Do not report trivial EINTR/EIO errors. */
if (read(0, &c, 1) < 1) {
if (errno == EINTR || errno == EIO)
- exit(0);
+ exit(EXIT_SUCCESS);
bb_perror_msg_and_die("%s: read", op->tty);
}
@@ -475,7 +475,7 @@ static char *get_logname(char *logname, unsigned size_logname,
}
break;
case CTL('D'):
- exit(0);
+ exit(EXIT_SUCCESS);
default:
if (!isascii(ascval) || !isprint(ascval)) {
/* ignore garbage characters */