sh: can't open '/dev/console' msg when exiting from a program with exit(1)
Eial Czerwacki
eial at scalemp.com
Tue Apr 24 05:50:10 UTC 2012
Hello all,
I have a busybox 1.19.2 env built with buildroot which runs a specific
binary,
if I press ctrl+c while running the binary, the process exists via
calling exit(1).
but when I exit, I get the following:
sh: can't open '/dev/console': No such device.
but when I run ls -l /dev/console, I get the following:
crw-rw-rw- 1 root root 5, 1 Apr 23 22:36 /dev/console
which means that it does exists.
I generate it using the table at
http://git.busybox.net/busybox/tree/testsuite/makedevs.device_table.txt?h=1_19_stable
and by running makedevs -d /etc/conf.d/makedevs_build_table /
why do I get that msg? how can I fix it?
it might be worth to point out that I do have keyboard both within the
bin and after I exit.
Thanks,
Eial.
More information about the busybox
mailing list