为什麽我的程序不能用 ^C 来中断?????????

为什麽我的程序不能用 ^C 来中断 , 一中断就出现死循环 ,如何在程序里调整?
---------------------------------------------------------------

signal(SIG_INT,SIG_DFL);
---------------------------------------------------------------

stty -a
看一下intr 设置为什么键
---------------------------------------------------------------

ctrl+\
---------------------------------------------------------------

你是否使用了信号,同时你将^C 信号给屏蔽掉了。在shell下ps 看看,通过kill -9 可以将你的进程杀掉。

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus