sh: can't open '/dev/console' msg when exiting from a program with exit(1)

ralda at gmx.de ralda at gmx.de
Wed Apr 25 08:25:55 UTC 2012


Hi Eial !

> > On my system (kernel 3.3.3) /dev/console is on major 5 minor 1
> 
> > (according to /proc/tty/drivers), the device at major 5 minor 2
> > is /dev/ptmx ... so who is wrong?
> 
> it is the same on my system but I don't use /dev/ptmx, only
> /dev/console, also as I use kernel 2.6.38.8, I think I'll follow the
> kernel input as it works.

You don't use /dev/ptmx? Are you sure? It is needed whenever you open a
pty devices, a function required for many purposes ...

I ought you catch something spurious. Please don't make things worse by
unverified change of /dev/console to 5,2. Try to find out what is going
wrong, else others may fail as they expect console on 5,1.

--
Harald


More information about the busybox mailing list