Honour tty field in /etc/inittab
authorMichel Stam <m.stam@fugro.nl>
Tue, 4 Nov 2014 15:50:54 +0000 (16:50 +0100)
committerSteven Barth <steven@midlink.org>
Tue, 4 Nov 2014 15:54:10 +0000 (16:54 +0100)
The problem was caused by procd not opening /dev/tty* (whichever was
specified for the ID field /etc/inittab), causing /proc/PID/fd to
point to /dev/console instead.

This is a rework of e63051d9, which did not initialise the console
pointer and did not check the tty pointer in askconsole. askfirst
was not completely fixed as it expected the console parameter on
the commandline, which is no longer necessary because procd opens
the console prior to fork()-ing.

Signed-off-by: Michel Stam <m.stam@fugro.nl>

No differences found