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)
commit44803f0b48e6b0bbc56b1f9f8c2ea9c8e1003302
tree824945b08a3d953a099361ed33c22bf7c24b4deb
parent174777181850705df7c6dbe234bd7e93d352666a
Honour tty field in /etc/inittab

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>
inittab.c
utils/askfirst.c