Fix #84: Reset TTY w/ stty() before taking any pre-getty action

This patch moves the stty() function from getty.c to a separate file so
it can be called from exec.c as well.  The fix to #84 is simply to call
stty() in prepare_tty(), which is shared by run_getty() and run_getty2()
and called before "Please press Enter ...".

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-10-29 11:59:48 +01:00
1 parent b45c3d5cb8
commit 250e26f2f6
5 files changed
+79 -39

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ finit_SOURCES = api.c \
client.c \
conf.c conf.h \
exec.c finit.c finit.h \
getty.c \
getty.c stty.c \
helpers.c helpers.h \
log.c log.h \
mdadm.c mount.c pid.c \