关于SIGKILL SIGQUIT
2015-03-25 10:22
176 查看
SIGQUIT 3 Core Quit from keyboard
SIGKILL 9 Term Kill signal
SIGQUIT 可以用ctrl+\ 发送给当前进程,退出时产生core dump。
SIGKILL被发送给一个程序时,它使程序立即终止。与SIGTERM和SIGINT相比,这个信号不能被捕获或忽略,同时接收这个信号的进程在收到这个信号时不能执行任何清理。
参考
http://bbs.chinaunix.net/thread-1919869-1-1.html http://zhidao.baidu.com/link?url=KA77oyYFGC0L423AiuQa7wsTrSBYSEiDYES99SfVD2oHifQBjq1eAopGJMDuR89cXMNPacoXAd5JJzv8NAQstq
SIGKILL 9 Term Kill signal
SIGQUIT 可以用ctrl+\ 发送给当前进程,退出时产生core dump。
SIGKILL被发送给一个程序时,它使程序立即终止。与SIGTERM和SIGINT相比,这个信号不能被捕获或忽略,同时接收这个信号的进程在收到这个信号时不能执行任何清理。
9是信号量,kill实际上是用来发送信号量给进程,你可以通过man kill查看信号量列表,这里给你一个我获得的信号量列表: Name Num Action Description 0 0 n/a exit code indicates if a signal may be sent ALRM 14 exit HUP 1 exit INT 2 exit KILL 9 exit cannot be blocked PIPE 13 exit POLL exit PROF exit TERM 15 exit USR1 exit USR2 exit VTALRM exit STKFLT exit might not be implemented PWR ignore might exit on some systems WINCH ignore CHLD ignore URG ignore TSTP stop might interact with the shell TTIN stop might interact with the shell TTOU stop might interact with the shell STOP stop cannot be blocked CONT restart continue if stopped, otherwise ignore ABRT 6 core FPE 8 core ILL 4 core QUIT 3 core SEGV 11 core TRAP 5 core SYS core might not be implemented EMT core might not be implemented BUS core core dump might fail XCPU core core dump might fail XFSZ core core dump might fail
参考
http://bbs.chinaunix.net/thread-1919869-1-1.html http://zhidao.baidu.com/link?url=KA77oyYFGC0L423AiuQa7wsTrSBYSEiDYES99SfVD2oHifQBjq1eAopGJMDuR89cXMNPacoXAd5JJzv8NAQstq
相关文章推荐
- Linux信号SIGTERM、SIGKILL、SIGINT和SIGQUIT的区别
- SIGTERM、SIGKILL、SIGINT和SIGQUIT的区别
- Linux的Signal及Singal处理(SIGQUIT SIGKILL SIGBUS等)
- SIGTERM、SIGKILL、SIGINT和SIGQUIT的区别
- 内存不足引起的SIGKILL:一个缓冲区不断增长问题的定位与解决(解释SIGKILL原因)
- 关于kill(1)命令和kill(2)函数
- SIGKILL 和 SIGTERM
- python pexpect nohup sighup sigkill
- 关于unix高级环境编程(apue)编译时的err_sys和err_quit错误的解决办法
- 关于信号sigprocmask
- Crash EXC_CRASH (SIGKILL)
- 关于DestroyWindow()和PostQuitMessage()的少许疑问
- 关于 signal(SIGPIPE,SIG_IGN)
- Linux中与进程终止相关的信号SIGTERM,SIGKILL,SIGINT
- xcode在调试带有webview的页面时出现SIGKill异常
- 一个关于linux进程函数kill的问题
- 在AIX上用IBM的JVM,内存溢出时默认地会产生javacore文件(关于cpu的)和heapdump文件(关于内存的)。手动产生堆栈文件的方法是使用kill -3
- sigterm sigint sigkill 区别
- 关于kill
- 关于PeekMessage无法收到WM_QUIT消息