linux - control+c 无效

标签 linux mips sigint

我正在使用 MIPS 架构的 linux 2.6.32.13-Cavium-Octeon。在终端上,当我按 ctrl+c 终止进程时;什么都没发生。我如何在我的内核中跟踪它来处理它的问题? stty -a 输出为:

`speed 115200 baud; rows 0; columns 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon ixoff
-iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke`

tty 有什么问题吗?因为当我 make menuconfig 时没有“enable tty”选项 并且命令 bind -v 也不起作用。

谢谢

最佳答案

1.) 你可以按Ctrl+z让进程休眠
2.) 然后执行“kill -9 process-pid”,在这里您可以使用“ps”和其他工具找到进程的pid。在 Bash(可能还有其他 shell)上,您可以执行“kill -9 %1”(或一般的“%N”),这更容易。
3.) 如果 Ctrl+z 不起作用,您将不得不打开另一个终端并从那里杀死。

关于linux - control+c 无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18609014/

相关文章:

c - 什么是信号函数 (SIGINT)?

linux - Gitea无法获取存储库

c++ - 执行控制台程序,写入标准输入并使用管道读取结果

MIPS 结构性危害

c - 数据存储器中缺少浮点变量值

C++:SIGINT后继续执行

linux - 当存在同名的共享库时,如何强制链接静态库

linux - GDB 附加到可执行文件被删除的进程

caching - 缓存行锁定

python - 向 Eclipse 控制台中运行的程序发送 SIGINT (Ctrl-C)