serial/pty: Initialize the terminal setting as a console
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: Ie80a22b7a074d048435524d86f0ca7fc7a20e756
This commit is contained in:
parent
817d81d38f
commit
7ff6aac43a
@ -1109,6 +1109,10 @@ int pty_register(int minor)
|
||||
devpair->pp_master.pd_devpair = devpair;
|
||||
devpair->pp_master.pd_master = true;
|
||||
devpair->pp_slave.pd_devpair = devpair;
|
||||
#ifdef CONFIG_SERIAL_TERMIOS
|
||||
devpair->pp_slave.pd_iflag = ISIG;
|
||||
devpair->pp_slave.pd_oflag = OPOST | ONLCR;
|
||||
#endif
|
||||
|
||||
/* Create two pipes:
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user