Chinaunix

标题: mini2440 自己制作的根文件系统 [打印本页]

作者: eezzrr    时间: 2010-03-28 22:26
标题: mini2440 自己制作的根文件系统
mini2440

我 自己制作的根文件系统,运行还可以 。。。
但是我写了一个测试程序,在终端运行

测试程序,如下:
#include<stdio.h>
main()
{
   while(1)
  {
       printf("--come on---kill me----\n");
  }
}

运行:
("--come on---kill me----
("--come on---kill me----
("--come on---kill me----
作者: eezzrr    时间: 2010-03-28 22:27
运行:显示
--come on---kill me----
--come on---kill me----
--come on---kill me----

但是 我用 Ctrl+c 杀不死它啊
作者: T-Bagwell    时间: 2010-03-29 07:54
/dev里面的问题
可以应该是tty和kernel里面的没有对应上吧
google搜索一下

http://busybox.net/FAQ.html#job_control

Job control will be turned off since your shell can not obtain a controlling terminal. This typically happens when you run your shell on /dev/console. The kernel will not provide a controlling terminal on the /dev/console device. Your should run your shell on a normal tty such as tty1 or ttyS0 and everything will work perfectly. If you REALLY want your shell to run on /dev/console, then you can hack your kernel (if you are into that sortof thing) by changing drivers/char/tty_io.c to change the lines where it sets "noctty = 1;" to instead set it to "0". I recommend you instead run your shell on a real console...
作者: eezzrr    时间: 2010-03-29 21:44
shi 是这样的  。。。。。。不知道的 还很多啊




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2