chiark / gitweb /
Resolve /dev/console to the active tty instead of just "tty0"
authorOlivier Brunel <jjk@jjacky.com>
Fri, 20 Sep 2013 20:18:28 +0000 (22:18 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 14 Nov 2013 04:22:30 +0000 (23:22 -0500)
commit8aa5429a4a59abbcf567938fa6ef60bb2c8ae2f1
treefc6159aa691e095fd620b31f45e53e77621b28c7
parent51d0f1c9f6a378f3bf11179e5794dc2c13b49644
Resolve /dev/console to the active tty instead of just "tty0"

When resolving /dev/console one would often get "tty0" meaning the active VT.
Resolving to the actual tty (e.g. "tty1") will notably help on boot when
determining whether or not PID1 can output to the console.
src/shared/util.c