summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2012-03-18 15:38:19 -0700
committerColin Cross <ccross@android.com>2012-03-18 15:39:59 -0700
commit50fb5a69333e4eb0b5fc30fdeae54bc73243061d (patch)
tree3f95e6e10c4b4ed50eef2fcb824d0b608ff499b6 /trusty/coverage/coverage_test.cpp
parent6ac770fc52595b8230c3286d7707c85b003aeac1 (diff)
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
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions