Draymonders / Code-Life

The marathon continues though.
27 stars 3 forks source link

Linux信号 #41

Open Draymonders opened 4 years ago

Draymonders commented 4 years ago

进程间通信方式有以下几种

Draymonders commented 4 years ago

使用kill -l 可以看到Linux所有的信号

为什么信号由kill杀死命令来执行呢. 因为信号多用于杀死进程.

也可以通过用户手册进行查看

man kill

Draymonders commented 4 years ago

通过手册可以知道 默认使用的是TERM信号