On 04/24/2012 08:50 AM, Eial Czerwacki wrote: > 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. > _______________________________________________ > busybox mailing list > [email protected] > http://lists.busybox.net/mailman/listinfo/busybox >
ok, I think I've solved the issue, I was defining /dev/console with major = 5 and minor = 1, changing minor to 2 solved it (per the following commit in the kernel: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=2bd3a997befc226ab4b504f05c5cbba305f3e0e6 which clearly states this minor should be 2.) if I'm not mistaken, then the entry at http://git.busybox.net/busybox/tree/testsuite/makedevs.device_table.txt?h=1_20_stable is wrong. Eial. _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
