On Thu, Aug 16, 2012 at 02:22:04PM +0000, Priebe, Sebastian wrote: > -----Ursprüngliche Nachricht----- > Von: Johannes Stezenbach [mailto:[email protected]] > Gesendet: Donnerstag, 16. August 2012 15:39 > >On Thu, Aug 16, 2012 at 03:33:25PM +0200, Denys Vlasenko wrote: > >> On Thu, Aug 16, 2012 at 8:01 AM, Priebe, Sebastian > >> > > >> > Inittab: > >> > ::shutdown:/bin/umount -a -r > >> > ::restart:/sbin/init > >> > ::respawn:/bin/cttyhack /bin/sh > >> > ::sysinit:/etc/init.d/rcS > >> > ::respawn:/sbin/getty tty0 > >> > >> I am surprised that parent PID is 1092. > >> When you run getty from init, parent PID should be 1. > >> Did you run getty from init for this test? > >> It looks like you ran getty from a shell. > > Yes, I ran the test from a shell. > If I boot my system with the inittab above, getty is started again and > again... > So I ran the test from a shell. > >> > >Besides the ppid issue, does the cttyhack screw things up for getty? > > I don't know much about the cttyhack... > I didn't create that inittab. But I have to change it, to provide a login > shell. > In the past there was only root on that system and no login.
Well, cttyhack is a hack that is sometimes useful if one can't use getty. Since you don't specifiy a device it runs on /dev/console and might conflict with tty0. So, get rid of it. Also normally tty0 is the "current virtual console", you should put the getty on the real tty device, e.g. tty1 for "first virtual console". Check Documentation/devices.txt in the Linux source tree. HTH Johannes _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
