init: manually set controlling tty for console services
Normally, calling open on a tty will set that tty as the process group controlling tty if none already exists. However, if the tty is /dev/console, the kernel will never automatically set it as the controlling tty. Call the TIOCSCTTY manually on the fd, which will always attempt to set it as the controlling tty. Fixes ctrl-c on the console shell when androidboot.console is not passed on the kernel command line and the default /dev/console is used. Change-Id: I449cc41b47e93ac38ad6987413bb54131e1ec0cd
Loading
Please register or sign in to comment