getty: Remove TTY clear from built-in getty, delegate to run_getty()

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-09-01 05:47:53 +02:00
1 parent f273ecc135
commit 277c3dbb14
2 files changed
+5 -8

No files matched your search

+2 -2
View File
@@ -39,7 +39,7 @@
#define NUM_ARGS 16
int getty(char *tty, char *baud, char *term, int noclear, char *user);
int getty(char *tty, char *baud, char *term, char *user);
/* Wait for process completion, returns status of waitpid(2) syscall */
@@ -234,7 +234,7 @@ pid_t run_getty(char *tty, char *speed, char *term, int noclear, int console)
pid = fork();
if (!pid) {
prepare_tty(tty, "finit-getty", console);
_exit(getty(tty, speed, term, noclear, NULL));
_exit(getty(tty, speed, term, NULL));
}
return pid;